This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Adding a time stamp parameter in order to force a new http session opening a new browser window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Adding a time stamp parameter in order to force a new http session opening a new browser window" Watch "Adding a time stamp parameter in order to force a new http session opening a new browser window" New topic
Author

Adding a time stamp parameter in order to force a new http session opening a new browser window

Marina Shapiro
Greenhorn

Joined: Oct 17, 2010
Posts: 1
Hi,

When I open two different windows of Firefox, I get twice the same http session using HttpSession session = request.getSession(true).

I would like to add a time stamp parameter to every forward URL in Struts 2.1 in order to force a new session opening a new browser window.

In which method should I do it and the objects of which should I use?

At the moment every action extends ActionSupport and
implements ServletRequestAware, ServletResponseAware, ParameterAware, SessionAware, RequestAware, ServletContextAware

Thank you in advance.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

Please be sure to start your own questions in your own new topics, I have split this post off into its own topic for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: Adding a time stamp parameter in order to force a new http session opening a new browser window
 
Similar Threads
session issues with Ctrl-N
Tabs within one browser share Session, but I want to capture close and time out event for each tab
what is session ?
Problems with lost sessions
New session new Browser