Results 1 to 2 of 2

Thread: Session variables ... login name/password

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2007
    Location
    Godzone, oops Oz
    Posts
    355

    Question 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.

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    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
  •  



Click Here to Expand Forum to Full Width