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.
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
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)