07-22-2013
You could possibly try to save the cookies or session ids from an initial authenticated session. Experiment by using wget and look at --save-session-cookies and --keep-session-cookies (also --user, and --password) to get the initial value)
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
my host run on a Free bsd server and i have a cgi script that requires LWP module, but i my host say that that module is installed, so i would like to know if the is a command because i have telnet access to know if the module or which modules are installed on my account (itīs that the script donīt... (4 Replies)
Discussion started by: Beto
4 Replies
2. Shell Programming and Scripting
currently it has the following:
bdumpN=`ll /home/apps/oracle/admin/DBprod/bdump/DBprod_j* | grep "$Cdate" | wc -l`
If I pass the DBname, I would not have to hardcode it in the script...
I can capture the database name by adding the following:
DBname=$1
The problem is, I have been unable... (2 Replies)
Discussion started by: mr_manny
2 Replies
3. Solaris
Hi all
i want to do FTP via running a shell script and i want to hard code username and password for that particular server..
by writing it in a file can u help me in this regard..
Thank u
Naree (2 Replies)
Discussion started by: naree
2 Replies
4. UNIX for Dummies Questions & Answers
Hi
Can any one help me out ?
I am trying to send an autogenerated mail with an attachment to bulk of users using 'MAILX' and 'UNENCODE' . I have used it as follows
X " ( cat /sastemp/body.txt; uuencode Test.xls.gz Test.xls.gz ) | mailx -s 'Testing' ' abcd@yahoo.com , efgh@gmail.com ' "
... (9 Replies)
Discussion started by: manas6
9 Replies
5. Programming
This might be a silly question, but I thought I'd ask anyway. If I'm writing in C, isn't it more efficient to, for instance, use constant character variable set to 'A' instead of hard-coding a character 'A'? Since it's only a single character instead of a string, it might not matter much. (10 Replies)
Discussion started by: cleopard
10 Replies
6. Shell Programming and Scripting
Can some one tell me how to post the username and password using perl LWP. An example is sufficient.. (0 Replies)
Discussion started by: Anjan1
0 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
I'm having a problem when I run the following code for example
perl -e 'use LWP::Simple; getprint "http://google.com"'
Can't locate LWP/Simple.pm in @INC (@INC contains: /System/Library/Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6... (7 Replies)
Discussion started by: pawannoel
7 Replies
8. Shell Programming and Scripting
Hi;
Can i have ne sample examples of of using " lwp-request" in shell script.
Is it necessary to have perl installed already in linux box for using this;
Thnks; (2 Replies)
Discussion started by: ajaypadvi
2 Replies
9. Hardware
Hi everyone
(see attachments)
I bought an HP Elitebook 8460p on eBay and it came with a password-locked Hitachi hard drive which I was told is the original hard drive. I don't know the password for the drive and running the diagnostics tools I see the hard drive is healthy. I tried booting... (9 Replies)
Discussion started by: milhan
9 Replies
LEARN ABOUT PHP
session_id
SESSION_ID(3) 1 SESSION_ID(3)
session_id - Get and/or set the current session id
SYNOPSIS
string session_id ([string $id])
DESCRIPTION
session_id(3) is used to get or set the session id for the current session.
The constant SID can also be used to retrieve the current name and session id as a string suitable for adding to URLs. See also Session
handling.
PARAMETERS
o $id
- If $id is specified, it will replace the current session id. session_id(3) needs to be called before session_start(3) for that
purpose. Depending on the session handler, not all characters are allowed within the session id. For example, the file session
handler only allows characters in the range a-z A-Z 0-9 , (comma) and - (minus)!
Note
When using session cookies, specifying an $id for session_id(3) will always send a new cookie when session_start(3) is
called, regardless if the current session id is identical to the one being set.
RETURN VALUES
session_id(3) returns the session id for the current session or the empty string ( "") if there is no current session (no current session
id exists).
SEE ALSO
session_regenerate_id(3), session_start(3), session_set_save_handler(3), session.save_handler.
PHP Documentation Group SESSION_ID(3)