Jump to content

Sessions


zeeshan

Recommended Posts

what u mean with a selec method for a log?to use sessions u first have to open a session using session_start();then u can save things the session by using the superglobal $_SESSIONso if u set $_SESSION['user'] = 'something'; then this will be saved in the session and will still be available on another page (as long as u also opened a session there)also see: http://www.php.net/session

Link to comment
Share on other sites

session_start needs to be on every page in order to link one page to another. If you break the chain, the session is invalid for retaining 'state'. Just a reminder.

Link to comment
Share on other sites

and i should use an select method for a log in script
A SELECT SQL query would be the most appropriate way to retrieve user information from a database to check it when someone attempts a login.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...