Jump to content

Sessions


Guest Stefán Örvar Sigmundsson

Recommended Posts

Guest Stefán Örvarr Sigmundsson

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

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

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

Archived

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

×
×
  • Create New...