in reply to Re: always logged in with CGI::Session
in thread always logged in with CGI::Session
Yep, your'e right the (s) shouldn't be there. However it still works with the (s)??? Don't ask me why!
I read in a post doing a supersearch that if you don't supply the expire, the session would expire when the browser window is closed. This doesn't seem to be true, or it is true and my application always gives me the same sessionid.
It sure feels like it always gives me the same session id. I use the name() function to shorten the "CGISESSID" name variable to just "sid", because if a user doesn't have cookies activated I can send the sessionid with a name of my choice like this:
I read in a post doing a supersearch that if you don't supply the expire, the session would expire when the browser window is closed. This doesn't seem to be true, or it is true and my application always gives me the same sessionid.
It sure feels like it always gives me the same session id. I use the name() function to shorten the "CGISESSID" name variable to just "sid", because if a user doesn't have cookies activated I can send the sessionid with a name of my choice like this:
Do you have any clue how to prevent the same sessionid to be set?# get sessionid for querystring if ($q->cookie('sid') ne $session->id()) { $tmpl->param(sid => "&sid=".$session->id()); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: always logged in with CGI::Session
by bibliophile (Prior) on Apr 03, 2006 at 16:15 UTC | |
by boboson (Monk) on Apr 05, 2006 at 22:07 UTC | |
by bibliophile (Prior) on Apr 06, 2006 at 14:18 UTC |
In Section
Seekers of Perl Wisdom