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
Session Handling
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
make sure to call session_start()