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 Quote 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 Quote 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 Quote 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. Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/90452-php-session-question/#findComment-463950 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.