469,366 Members | 2,198 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,366 developers. It's quick & easy.

How to append jsessionid in URL

rsrinivasan
221 100+
Hi all,
I am developing application using struts. But i do not know how to append jsession id in URL. If any one know, reply me asap.

Thanks,
Jan 8 '08 #1
4 42324
ajos
283 100+
Hi all,
I am developing application using struts. But i do not know how to append jsession id in URL. If any one know, reply me asap.

Thanks,
Why do you need it, It normally is not advised to append the jsessionid in the url. read this .
Check your server documentation and make sure that the servlet context for your web app has session tracking using cookies disabled.
set the cookies to true.
Further read the tomcat/your documentation for more answers about it.
I hope this should be it.
regards,
ajos
Jan 8 '08 #2
rsrinivasan
221 100+
Why do you need it, It normally is not advised to append the jsessionid in the url. read this .
Check your server documentation and make sure that the servlet context for your web app has session tracking using cookies disabled.
set the cookies to true.
Further read the tomcat/your documentation for more answers about it.
I hope this should be it.
regards,
ajos
Thanks for your reply.

But i need to append the jsessionid with URL. Because when i click some URL from the "Address Bar", it takes that page from cookie instead of getting that page from the server.

Thanks,
Jan 8 '08 #3
rsrinivasan
221 100+
Thanks for your reply.

But i need to append the jsessionid with URL. Because when i click some URL from the "Address Bar", it takes that page from cookie instead of getting that page from the server.

Thanks,
Hello if any one know how to append jsessionid with URL, reply me. It is very urgent.

Regards,
Jan 9 '08 #4
ajos
283 100+
Hello if any one know how to append jsessionid with URL, reply me. It is very urgent.

Regards,
I guess you didnt read the article in the link that i posted.
It say's
Cookieless sessions are achieved in Java by appending a string of the format ;jsessionid=SESSION_IDENTIFIER to the end of a URL. To do this, all links emitted by your website need to be passed through either HttpServletRequest.encodeURL(), either directly or through mechanisms such as the JSTL <c:out /> tag. Failure to do this for even a single link can result in your users losing their session forever.
It also has examples in it.Go through it.:)
regards,
ajos
Jan 9 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

25 posts views Thread by Yves Glodt | last post: by
reply views Thread by audleman | last post: by
26 posts views Thread by John Salerno | last post: by
2 posts views Thread by jeremito | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.