File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Session Merging - URL Rewrite Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Session Merging - URL Rewrite" Watch "Session Merging - URL Rewrite" New topic

Session Merging - URL Rewrite

Arulanand Dayalan
Ranch Hand

Joined: Aug 10, 2005
Posts: 124

In our application we are facing Session Merging issue ( One solution to this problem is URL Rewriting. We are using Struts 1.2. This automatically writes jsessionid to a Cookie. Is there any way we can prevent this happening and append jsessionid to URL using struts. We are also interested other approaches using which we can solve this problem. Thanks in advance.

Ankit Garg

Joined: Aug 03, 2008
Posts: 9452

This is a browser feature, how will you handle it if I open a new browser window and enter the name of your site manually, even URL rewriting won't help in that case...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
James Ward
Ranch Hand

Joined: Apr 27, 2003
Posts: 263
Putting jsessionid in URL is a feature of the Application Server, and not of Struts Framework.
It is sorta covered in the JavaRanch Style Guide.
subject: Session Merging - URL Rewrite
It's not a secret anymore!