|
-
Sep 5th, 2012, 06:20 PM
#1
Thread Starter
Hyperactive Member
Session variables ... login name/password
I am checking if someone is logged in on my index.php form, if it is the first time accessing the form it throws an error.
Is it correct to check for session variables via the ISSET() function or is there a better way, sorry don't have code on this here PC.
-
Sep 5th, 2012, 07:13 PM
#2
Re: Session variables ... login name/password
Yes, you can use session_start followed by isset($_SESSION['token']), where 'token' is set upon login.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|