Christopher Bergin Posted December 2, 2012 Share Posted December 2, 2012 I'm almost done with the book. In the last chapter( Chapter 19), a start_session command is included in the header file which, if I understand this correctly, will start a new session each time a new page with the header included is visited. How is session data maintained if a new session is started? In Chapter 12, the session is initiated in a single login page and maintained throughout the site until the visitor logs out. Link to comment Share on other sites More sharing options...
spookie Posted December 2, 2012 Share Posted December 2, 2012 I think when you call the function session_start() at the begining of the script. It does two things 1) set the session if it does not exists 2) does nothing if it exists. 2 Link to comment Share on other sites More sharing options...
Christopher Bergin Posted December 2, 2012 Author Share Posted December 2, 2012 thank-you spookie, I will accept that as a plausible explanation. Link to comment Share on other sites More sharing options...
Recommended Posts