fasa77 has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use CGI qw(:standard); use CGI::Session; my $tmp_directory = '/tmp'; my $session_id = CGI->cookie("CGISESSID") || CGI->param('CGISESSID') +|| undef; if (not $session_id){ my $first_session = new CGI::Session(undef, undef, {Directory=>$tmp +_directory}); print "first session = $first_session\n";## VALID SESSION $session_id = $first_session->id; } my $second_session = new CGI::Session(undef, $session_id, {Directory + => $tmp_directory}); print "second session = $second_session\n"; ## NOTHING!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI::Session in SUN OS
by Corion (Patriarch) on Jul 21, 2010 at 13:29 UTC | |
by fasa77 (Initiate) on Jul 21, 2010 at 13:35 UTC | |
by Anonymous Monk on Jul 21, 2010 at 13:57 UTC | |
by fasa77 (Initiate) on Jul 21, 2010 at 14:08 UTC | |
by cosmicperl (Chaplain) on Jul 21, 2010 at 22:38 UTC | |
|
Re: CGI::Session in SUN OS
by sierpinski (Chaplain) on Jul 21, 2010 at 14:06 UTC | |
by fasa77 (Initiate) on Jul 21, 2010 at 14:20 UTC |