Is there a way to encode session information within...
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   John_Maguire
Posted On:   Monday, March 12, 2001 04:32 AM

Is there a way to encode session information within a form? I am using

			
String url = response.encodeRedirectUrl("NewPage.jsp");
response.sendRedirect (url);

to forward to new pages.
Is there any way to do this within a form so that when the submit button is clicked the new page will have access to the session information. I am trying to do this with cookies switched off.

Re: Is there a way to encode session information within...

Posted By:   Michael_Wax  
Posted On:   Friday, March 30, 2001 02:56 PM

The key alternative to using cookies is URL rewriting, in which a session key is added to URLs used for navigation around a site instead of being placed in a cookie. If you look at the URLs of many popular commercial sites (e.g., Amazon), you can see URL rewriting in action.


Many popular servlet containers will do URL rewriting for you. One caveat to using URL rewriting is that you must ensure that every link and form action must be rewritten to contain the session key. Any link which is missing this key will cause loss session information.

About | Sitemap | Contact