mkosmosports Posted June 14, 2007 Share Posted June 14, 2007 Hey, When do session id's change? Thanks. Link to comment https://forums.phpfreaks.com/topic/55601-session-ids/ Share on other sites More sharing options...
mkosmosports Posted June 14, 2007 Author Share Posted June 14, 2007 Maybe I should rephrase that to be a little more specific... Under what circumstance would the session_id() function return a different id? If the user closes the browser? Thanks. Link to comment https://forums.phpfreaks.com/topic/55601-session-ids/#findComment-274703 Share on other sites More sharing options...
Illusion Posted June 14, 2007 Share Posted June 14, 2007 Even in the same script if you use session_destroy() and call again session_start() it produces different session id. If I am not wrong it uses current time stamp to produce generate the session id. Link to comment https://forums.phpfreaks.com/topic/55601-session-ids/#findComment-274709 Share on other sites More sharing options...
mkosmosports Posted June 14, 2007 Author Share Posted June 14, 2007 Right, if you destroy the session yes. But I never destoy it, I continually unset it, but I just want to know when it would change, or if it would ever unless destroyed of course. Strange, after restarting the browser it seems to reset everytime, although I swear last night this was not the case.... Another funny thing I just noticed. In Firefox, if you open new browser windows, it uses the initial session_id until you close all instances. However in IE 7, every new instance produces a different session_id... Link to comment https://forums.phpfreaks.com/topic/55601-session-ids/#findComment-274713 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.