aspose file tools*
The moose likes Servlets and the fly likes sendRedirect has jsessionid appended.  how to remove ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "sendRedirect has jsessionid appended.  how to remove ?" Watch "sendRedirect has jsessionid appended.  how to remove ?" New topic
Author

sendRedirect has jsessionid appended. how to remove ?

Artemesia Lakener
Ranch Hand

Joined: Jun 21, 2005
Posts: 162
I use "response.sendRedirct(URL) to direct my page to another place. I use session too. However, the URL I see is URL;jsessionid=..
Since I *just* want to redirect to a standalone page which should NOT get involved with any session, how do I make sure the directed URL has no "jssessionid=.." appended ?
D Rog
Ranch Hand

Joined: Feb 07, 2004
Posts: 472

Do you redirect to a different domain? What's servlet container you use?


Retire your iPod and start with HD Android music player Kamerton | Minimal J2EE container is here | Light weight full J2EE stack | and build tool | Co-author of "Windows programming in Turbo Pascal"
Jignesh Patel
Ranch Hand

Joined: Nov 03, 2001
Posts: 626

You can set session=false in your jsp.
or you in your calling action method or in previous jsp. set session.invalidate()
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: sendRedirect has jsessionid appended. how to remove ?
 
Similar Threads
encodeURL necessary?
Disable Session Id
Difference between encodeURL and encodeRedirectURL
Problem in logging in web application
URL rewriting