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();
In reply to Re: Perl CGI::Sessions
by vc_will_do
in thread Perl CGI::Sessions
by dariusj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |