axiom007 Posted October 5, 2007 Share Posted October 5, 2007 Is there anything that would create a new session id within a current session. On my pages, I pull sesion id using sessiond_id(). on some of my pages, it pulls one session id, then on others, it pulls a different one. the is no killing of the session, but I can go to one page that has one id, then to another that pulls a different id, then go back and reload the original page and it has the original id. I am perplexed. Link to comment https://forums.phpfreaks.com/topic/71961-solved-session-question/ Share on other sites More sharing options...
MmmVomit Posted October 5, 2007 Share Posted October 5, 2007 http://www.php.net/manual/en/function.session-regenerate-id.php I'm not exactly sure I understand the problem you're having, though. Link to comment https://forums.phpfreaks.com/topic/71961-solved-session-question/#findComment-362434 Share on other sites More sharing options...
Yesideez Posted October 5, 2007 Share Posted October 5, 2007 There is a session_regenerate_id() function but that just changes the current session ID for a completely random one. Link to comment https://forums.phpfreaks.com/topic/71961-solved-session-question/#findComment-362437 Share on other sites More sharing options...
axiom007 Posted October 5, 2007 Author Share Posted October 5, 2007 it is hard to describe, but it is like one group of my pages are running on one session, and another group on a different session. I am not doing any kind of regenerate. It is like one group of the pages just starts as new session. but one group keeps the original session id and the other group get the new id. but you can go back and forth between the pages, and each page will pull it's respective id. however, I want only one session id throughout the whole site. I am really befuddled. Link to comment https://forums.phpfreaks.com/topic/71961-solved-session-question/#findComment-362471 Share on other sites More sharing options...
MmmVomit Posted October 5, 2007 Share Posted October 5, 2007 That is strange. Are you doing any monkeying around with cookies or GET variables that could be screwing up the sessions? Link to comment https://forums.phpfreaks.com/topic/71961-solved-session-question/#findComment-362528 Share on other sites More sharing options...
axiom007 Posted October 5, 2007 Author Share Posted October 5, 2007 Well, It is an online catalog, so I am using get variables to pass product information. But other than that, no cookies. ??? Link to comment https://forums.phpfreaks.com/topic/71961-solved-session-question/#findComment-362622 Share on other sites More sharing options...
axiom007 Posted October 6, 2007 Author Share Posted October 6, 2007 after looking at the application, it switches the id on the first page that uses a Get variable. Does that get the wheels turning at all? Link to comment https://forums.phpfreaks.com/topic/71961-solved-session-question/#findComment-363050 Share on other sites More sharing options...
teng84 Posted October 6, 2007 Share Posted October 6, 2007 i dont understand but isnt it session is array then you can put lots of different value in it!? Link to comment https://forums.phpfreaks.com/topic/71961-solved-session-question/#findComment-363053 Share on other sites More sharing options...
axiom007 Posted October 6, 2007 Author Share Posted October 6, 2007 Just to let you all know, I am an idiot. The reason for the reassigning of session ids is that I built my javascript menu with absolute links instead of relative links. some of the links contained "www" and some did not. therefore, running on two servers, hence, two session id's. Yeah, it works properly now. Link to comment https://forums.phpfreaks.com/topic/71961-solved-session-question/#findComment-363186 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.