acctman Posted February 11, 2008 Share Posted February 11, 2008 I have a question regarding php sessions. Im going to include another script into an existing script, will the PHP session Id be the same throughout the site no matter what scripts are processing the code? so if i have 3 different script would all of the have the same session id for a user? thanks Link to comment https://forums.phpfreaks.com/topic/90452-php-session-question/ Share on other sites More sharing options...
vbnullchar Posted February 11, 2008 Share Posted February 11, 2008 i think yes Link to comment https://forums.phpfreaks.com/topic/90452-php-session-question/#findComment-463740 Share on other sites More sharing options...
nethnet Posted February 11, 2008 Share Posted February 11, 2008 The session ID will remain the same for as long as that instance is open. A new session ID will be assigned if the current session expires or is destroyed (either by PHP code or closing the browser). Theo Link to comment https://forums.phpfreaks.com/topic/90452-php-session-question/#findComment-463742 Share on other sites More sharing options...
acctman Posted February 11, 2008 Author Share Posted February 11, 2008 thanks. Link to comment https://forums.phpfreaks.com/topic/90452-php-session-question/#findComment-463830 Share on other sites More sharing options...
revraz Posted February 11, 2008 Share Posted February 11, 2008 Just make sure all the pages that use the session are from the same domain. Link to comment https://forums.phpfreaks.com/topic/90452-php-session-question/#findComment-463950 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.