Guest Stefán Örvarr Sigmundsson Posted May 30, 2009 Share Posted May 30, 2009 How does the session_start() function work? If a session has already been created what does the function do? Link to comment Share on other sites More sharing options...
Ingolme Posted May 30, 2009 Share Posted May 30, 2009 When putting session_start() in a file, you are starting the session in that page so that it has access to session variables. Link to comment Share on other sites More sharing options...
justsomeguy Posted June 1, 2009 Share Posted June 1, 2009 If a session has already been created then session_start will look for a session ID that was sent in a cookie and associate the user with that session, or else it will start a new one and send a cookie with the ID. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.