PDA

View Full Version : removing session id from URL


Robin John
09-25-2008, 01:49 PM
hi friends,

The issue is i am getting a jsessionid=salkfjlsjfljslfjlsf attached to the url for the first time when i load my page.
How to avoid that without dealing with cookies :(

Thanks in advance.

shyam
09-25-2008, 08:34 PM
have u tried setting the session attribute of the page directive

<%@ page session="false" %>

Robin John
09-26-2008, 08:11 AM
i tried that in my jsp, it wont work :(

anyways, i am redirecting to the url using java.net.URLEncoder.encode();

and docs say it will attach the session ID to the url if the cookies are not turned on.. :( i turned on the cookies to.. that wont work also :( HELP !!