A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Is cookies are mandatory for session management?
Joined: Dec 16, 2008
Dec 01, 2011 23:21:20
Can you please explain me why cookies needs to be enabled for the session? without cookies cant we have session?
Thanks n Regards,
Nagaraj S K
Joined: Sep 21, 2011
Dec 01, 2011 23:33:43
No, cookies are not needed for session handling. There is another mechanism called "URL rewriting" which can be used instead. Note that this requires all URLs sent to the client to be treated especially.
Joined: Oct 27, 2005
Dec 02, 2011 00:51:10
Tim is right. The server should check if cookies are enabled, and if not it should add the session ID to the URLs. You can do this with HttpServletResponse's encodeRedirectURL and encodeURL methods.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions
How To Answer Questions
Joined: Feb 08, 2009
Dec 02, 2011 09:54:07
Rob Spoor wrote:
You can do this with HttpServletResponse's encodeRedirectURL and encodeURL methods.
or use a framework that does the hard work for you. Most (or is it all
?) web frameworks do this for you behind the scene.
Cheers - Sam.
Twisters - The new age Java Quiz
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Is cookies are mandatory for session management?
most challenging topics in SCWCD
How to set cookies in Tapestry ?
Are session attributes really stored in cookie?
newbie : session problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015