Re: [Cgi-session-user] CGI::Session->new not accepting sid
Brought to you by:
sherzodr
From: Cees H. <ce...@gm...> - 2007-07-04 00:11:24
|
On 7/1/07, Niklas Ulvinge <ul...@gm...> wrote: > ******************************************************** > Or, if you're super lazy here's some psuedo: > sid=cookie > s=new session(sid) > > print sid > print s.sid > ******************************************************** > > The output should be two lines with the same value, > but I get different, like this: > bbeff82a55788c38789017b1fe75a333 > 276bc36e5a9d826564131b0f0bf37a43 > > And if I run it again I get: > 276bc36e5a9d826564131b0f0bf37a43 > ce580941292833cf55c70984632cba97 > > and the fast eyed can see that the second line of the first > is the same as the first line of the second. > > Why does this happen? > new must be wrong, but how? Are you sure that your session is being saved in the database? If you pass a session ID to new, and that session ID does not exist in the database, then CGI::Session throws it away, and a new session ID will be created. Cheers, Cees |