Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Perl (http://www.go4expert.com/forums/perl/)
-   -   Not able to use CGI::Session (http://www.go4expert.com/forums/able-cgisession-t4663/)

madhavi 13Jun2007 16:20

Not able to use CGI::Session
 
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

pradeep 13Jun2007 17:47

Re: Not able to use CGI::Session
 
Please refer to this thread http://www.go4expert.com/showthread.php?t=1077

madhavi 14Jun2007 10:51

Re: Not able to use CGI::Session
 
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

pradeep 14Jun2007 11:54

Re: Not able to use CGI::Session
 
What was the exact error?? I guess, you don't have the index.pl so you must have got a HTTP 404 error.

madhavi 14Jun2007 16:16

Re: Not able to use CGI::Session
 
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.

pradeep 14Jun2007 17:05

Re: Not able to use CGI::Session
 
Try upgrading CGI::Session to the latest version!


All times are GMT +5.5. The time now is 08:03.