• Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating new Session without invalidating current session  RSS feed

 
Duddiyanda Siraj
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

Not sure whether this question has been asked - Is it possible to create a new session without invalidating the current session ? I couldn't find any info regarding this after spending lots of time in spec and search engine.

Appreciate if some one gives me a way to overcome this issue.

Thanks,

Siraj
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only one session can exist for a given user at a given time so, no.
 
Amarender Reddy
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chaos !!

How could this be possible?

Imagine an application where the same user creates 2-3 active sessions and start making different changes in each session.

I dont think should ever be possible !

-Amar
 
Duddiyanda Siraj
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Siraj DH",
Please check your private messages regarding an important administrative matter.
-Ben

Changed

Chaos !!
How could this be possible?
Imagine an application where the same user creates 2-3 active sessions and start making different changes in each session.
I dont think should ever be possible !
-Amar



This is possible by opening multiple browser, each window is treated as a diffrent session. I am facing problem when it's multiple tabbed window in a single browser(with diffrent login), each tab is assigned with same session Id. This leads to context getting changed for each user.

As a fix I thought to keep the existing session open and create a new session for the second tab request.

Any thoughts or any other way to overcome this problem ?

Thanks,
Siraj
[ April 23, 2008: Message edited by: Sira jUddin ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, Having multiple session open in the same browser is not possible. If this, rather weird, scenario is a hard requirement, you'll need to maintain some sort of pseudo-sessions on your own. Personally, I think the requirement is madness.
 
Duddiyanda Siraj
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right, but you know client is the king . In IE6 they were opening multiple browser to update their customers details parallelly, there were no complaints. But as they started using IE7 opening single browser and multiple tab caused lots of chaos.

Thank you all for your inputs
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could do it using URL rewriting rather than cookies, but the trick as always is getting each tab to adopt a different session. You could also provide your own Session Manager (Tomcat allows you to do this) but I've never been remotely interested in going any further
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!