Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I got CGI::Session to work on my local computer (running on Windows). But I realise CGI::Session isn't installed on my web host.

What alternative solutions can I explore?

I tried copying all the files for CGI::Session into my web host (running on Linux) but that didn't work i.e. Session.pm and its related files (Driver.pm, ErrorHandle.pm) and folders (Driver, ID, Serialize, Test). Is that supposed to work?

Could someone please enlighten me?

Thanks in advance.

Replies are listed 'Best First'.
Re: Perl CGI::Session
by Anonymous Monk on Jun 08, 2008 at 05:31 UTC
      Thank you so much. Followed the guide and managed to get it installed.
Re: Perl CGI::Session
by wfsp (Abbot) on Jun 08, 2008 at 06:08 UTC
    A possible explanation is that more "recent" versions of CGI::Session use the "recently" added refaddr method of Scalar::Util. The latter is not pure Perl so cannot just be copied to your web hoster.

    If your hoster doesn't have the required version of S::U you'll be out of luck.

    Either ask your hoster to install the latest version of C::S or failing that copy a version that doesn't use S::U.

    See also: Re: CGI::App::Session param not getting saved