in reply to one last question about CGi session

You need to pass the $sid to the CGI::Session->new() call in your CheckIfUserIsLoggedIn() function as the second parameter. Did you actually read the documentation for CGI::Session? (Click on the link if you haven't.)

Also - you will probably want to read merlyn's column on the topic of sessions. Your method isn't very secure.

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

I shouldn't have to say this, but any code, unless otherwise stated, is untested

  • Comment on Re: one last question about CGi session

Replies are listed 'Best First'.
Re^2: one last question about CGi session
by cranberry13 (Beadle) on Jul 15, 2004 at 12:28 UTC
    Dear Dragonchild,
    Hey! it works now :) Thanks for the reference to Merlyn's column. Great stuff.

    Thanks for getting me through this bottleneck -- Now I can go on to the good stuff!!

    ps. Of course I read (and reread about a thousand times) the tutorial. THe window is still up on my screen and I keep referring back to the code.