in reply to Re: Making CGI::Session Permanent
in thread Making CGI::Session Permanent

When you say cookie do you mean the session ? I've actually just tried setting the session expiry to 30 days from now using:
$session->expire('+30d');
This doesn't seem to have worked though and as soon as I close the browser, the cart is empty once again.

Is there someway to set the expiry of the cookie specifically within CGI::Session other than $session->expire() ?

Replies are listed 'Best First'.
Re: Re: Re: Making CGI::Session Permanent
by oghran (Initiate) on Dec 10, 2003 at 13:08 UTC
    Okay, nevermind. I've actually looked back at my code and realised I'm saving the session id as a cookie with CGI::Cookie. Ive set the expiry of that for 30 days and its working perfectly.

    Sometimes it pays to read your own code before posting.

    Thanks :)