Page 1 of 1

Session Handling

Posted: Tue Aug 30, 2005 9:07 pm
by vchris
Hey all,

I am creating a site with an admin panel.

I'd like to know what is the best way to verify if the user is logged in? (Cookies, session variables...)

I tried with the session way but seems like it doesn't work. Here is the error I got:
Undefined variable: _SESSION

I want to do it with session. how is it done?

Chris

Posted: Tue Aug 30, 2005 9:19 pm
by feyd
make sure to call session_start()

Posted: Wed Aug 31, 2005 3:25 am
by patrikG