This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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()
 
Don't get me started about those stupid light bulbs.
 
subject: sendRedirect has jsessionid appended. how to remove ?
 
Similar Threads
URL rewriting
Disable Session Id
Problem in logging in web application
Difference between encodeURL and encodeRedirectURL
encodeURL necessary?