Results 1 to 2 of 2

Thread: Session variables ... login name/password

  1. #1
    Hyperactive Member
    Join Date
    Oct 07
    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.
    http://www.scaryminds.com - Horror's last colonial outpost.

  2. #2
    Moderator
    Join Date
    Jan 05
    Location
    Sydney
    Posts
    13,612

    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
  •