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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply 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: 471
Do you redirect to a different domain? What's servlet container you use?


Get power of your iPod with MediaChest | Minimal J2EE container is here | Light weight full J2EE stack | My blog | Co-author of "Windows programming in Turbo Pascal"
Jignesh Patel
Ranch Hand

Joined: Nov 03, 2001
Posts: 625

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: sendRedirect has jsessionid appended. how to remove ?
 
Similar Threads
URL rewriting
encodeURL necessary?
Disable Session Id
Difference between encodeURL and encodeRedirectURL
Problem in logging in web application