in reply to Perl CGI::Sessions
please make sure that your sessions are send to browser by checking $f_name = $session->param('user_name'); In the code for second page, check for if ($session->is_expired) will fail as your session is valid. For some reason session is empty. CGI::Session->load() says that Notice, all expired sessions are empty, but not all empty sessions are expired! So make sure that your session data for user_name is set in browser properly.
Also, Why are you using CGI object to set cookie when you can do it with $session object itself like print $session->header();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl CGI::Sessions
by dariusj (Sexton) on Sep 07, 2007 at 13:24 UTC |