This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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()
 
jQuery in Action, 2nd edition
 
subject: sendRedirect has jsessionid appended. how to remove ?