• Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple Sessions in one browser

 
sandy gupta
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
A user of my app goes from server www.aaa.com to www.bbb.com both sites hosted by me. Does he retrieve the session variables that i created at the time he entered aaa or is there a new session created.
It seems like the browser/server creates a new session based on the new domain. If so is there any way i can get a session variable that i set for aaa in bbb.
Thanks
Sahil
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like you are going to have to go outside the HttpSession mechanism to achieve what you want. Perhaps you could use hidden variables in a form?
Bill
 
Shubhrajit Chatterjee
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A third party cookie might help. For example when you are on aaa.com, load a cookie from bbb.com to store data.
Many users often turn off third party cookie though so it may not very useful in an internet application. You can also use the hidden variable approach as said earlier.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!