Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Marina Shapiro
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65228
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic