Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

It is possible to start another session within the pages?  RSS feed

 
Ricardo Alvarado
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am storing my session id into a database and I realiza that on every new page I enter, the session id is changing.

How did this happen? I'm not using session(true) nor session(false) statements in any of the pages...

Does anyone has this problem?

Thanks
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose this has to do with how the client and server are configured. If you're using cookies, I don't see how this would be a problem as long as you actually have a session active. If it's done using URL rewriting, then you need to make sure that you include the session id when you do all your links. In that case if you didn't, the session wouldn't be propogated to the next page. Hope this helps you some.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!