www.webdeveloper.com
Results 1 to 2 of 2

Thread: help with session script

  1. #1
    Join Date
    Jun 2013
    Posts
    33

    help with session script

    i have written a login script in php and started session in it if user successfully logs in.
    i set $_SESSION['email'] and $_SESSION['u_id'] as session variables in the same script.
    Now i have to redirect to "members" page.
    Then how should i check if session has started or user has logged in in the "members" script.
    pls help.

  2. #2
    Join Date
    Jul 2013
    Location
    Voorheesville NY USA
    Posts
    849
    You could set another session var or you could use the ['u_id'] var your already created as a signal that logon was completed successfully.

    Know that once you begin a session and then execute a 'header' to go to the members page, any session var you created during login will be available in the members script

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles