• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session maintenance

 
Nagaraj Shivaklara
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Is it possible to have session maintained with cookies disabled in the browser? If possible how to do it?

Please explain me.

Thanks in advance
Nagaraj
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup! UrlRewriting.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11854
185
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Servlets since this seems to be your current area of work, and where you possibly want to look at Url Rewriting.
 
Michael Angstadt
Ranch Hand
Posts: 277
Eclipse IDE Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like Cameron said, you have to use UrlRewriting. This means that you have to specially encode all your links in your JSPs so that it can automatically append the session ID to the URL if the client doesn't support cookies. You can do this using the <c:url> JSTL tag:

 
Alpesh Padra
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After doing URL rewriting, you can see jsessionid one request parameter is appended in the URL..
 
Rahul Kumar Tiwari
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nagaraj Shivaklara wrote:Hi All,

Is it possible to have session maintained with cookies disabled in the browser? If possible how to do it?

Please explain me.

Thanks in advance
Nagaraj


Hi Dear
Just use urlEncode() method for url re-writting and you will be able to maintain session without cookies.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic