Can you please explain me why cookies needs to be enabled for the session? without cookies cant we have session?
Thanks
Nagaraj
Thanks n Regards,
Nagaraj S K
Tim Moores
Rancher
Joined: Sep 21, 2011
Posts: 2407
posted
0
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.
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.