1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not able to use CGI::Session

Discussion in 'Perl' started by madhavi, Jun 13, 2007.

  1. madhavi

    madhavi New Member

    Joined:
    Jun 13, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
  3. madhavi

    madhavi New Member

    Joined:
    Jun 13, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  4. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    What was the exact error?? I guess, you don't have the index.pl so you must have got a HTTP 404 error.
     
  5. madhavi

    madhavi New Member

    Joined:
    Jun 13, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  6. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    Try upgrading CGI::Session to the latest version!
     

Share This Page