File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Hiding Session ID in address bar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Hiding Session ID in address bar" Watch "Hiding Session ID in address bar" New topic

Hiding Session ID in address bar

hrishikesh katti

Joined: Apr 27, 2009
Posts: 1
I m doing one web based project in Struts 1.3. My web application contains Login form. When I submit my login form the control goes to
When action goes to the address bar contains entire URL. This address bar also shows JSession ID which is some huge number.
I want to hide this JSession ID in address bar.
Please Help.waiting 4 reply.....
David Newton

Joined: Sep 29, 2008
Posts: 12617

The session ID will only show up in the address bar if (a) cookies are turned off or (b) it's the first request (the server doesn't know if cookies are turned off until it tries to set a cookie and it doesn't get sent back by the browser).
I agree. Here's the link:
subject: Hiding Session ID in address bar
Similar Threads
FORM-BASED setup problem: Login.jsp cannot be rendered!!!
forward action
struts and proxy problem
struts & Jdeveloper
Browser Path Not Refreshing