Not able to use CGI::Session

madhavi's Avatar, Join Date: Jun 2007
Newbie Member
Hi,

Can anyone guide me on how to use CGI::Session in Perl? I would like to create sessions for an Web application.

Thanks & Regards
Madhavi
0
pradeep's Avatar, Join Date: Apr 2005
Team Leader
Please refer to this thread http://www.go4expert.com/showthread.php?t=1077
0
madhavi's Avatar, Join Date: Jun 2007
Newbie Member
Hi Pradeep,

I tried the example given by you & encountered the following prb:
- Could not redirect the page using 'print $session->header(-location=>'index.pl');'
Kindly give me your inputs.

Thanking You,
Madhavi
0
pradeep's Avatar, Join Date: Apr 2005
Team Leader
What was the exact error?? I guess, you don't have the index.pl so you must have got a HTTP 404 error.
0
madhavi's Avatar, Join Date: Jun 2007
Newbie Member
The error is :

Software error:

save_param(): first argument must be an object at blib/lib/CGI/Session.pm (autosplit into blib/lib/auto/CGI/Session/load_param.al) line 1037
CGI::Session::load_param('CGI::Session') called at /var/www/pages/perl/index.pl line 8

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.


index.pl does exist.
0
pradeep's Avatar, Join Date: Apr 2005
Team Leader
Try upgrading CGI::Session to the latest version!