aspose file tools*
The moose likes Servlets and the fly likes Session maintenance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session maintenance " Watch "Session maintenance " New topic
Author

Session maintenance

Nagaraj Shivaklara
Ranch Hand

Joined: Dec 16, 2008
Posts: 78
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


Thanks n Regards,
Nagaraj S K
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

Yup! UrlRewriting.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11460
    
  94

Moving to Servlets since this seems to be your current area of work, and where you possibly want to look at Url Rewriting.


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Michael Angstadt
Ranch Hand

Joined: Jun 17, 2009
Posts: 273

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:



SCJP 6 || SCWCD 5
Alpesh Padra
Ranch Hand

Joined: Jan 10, 2010
Posts: 41
After doing URL rewriting, you can see jsessionid one request parameter is appended in the URL..
Rahul Kumar Tiwari
Greenhorn

Joined: Jun 09, 2008
Posts: 14
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session maintenance