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

Confusion in URL Rewriting

Glenny Dsilva
Ranch Hand

Joined: May 09, 2005
Posts: 42
I am confused when to use url rewriting

As I know that sessions are created in three ways

using cookies
HttpSession
and URl Rewriting

I normally track session by using HttpSession s = req.getSession(true);

Then what is the diff between HttpSession and URL Rewriting.
Ashwin Kumar
Ranch Hand

Joined: Apr 07, 2005
Posts: 78
If the browser does not support cookies, or if cookies are disabled, you can still enable session tracking using URL rewriting.
URL rewriting essentially includes the session ID within the link itself as a name/value pair. However, for this to be effective, you need to append the session ID for each and every link that is part of your response.


Preparing SCEA..<br />SCBCD 5.0<br />SCWCD 1.4<br />SCJP 1.4
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
For more information, http://home.earthlink.net/~alxdark/software/wcd-guide/ch05s03.html.
Found one more for you,
http://publib.boulder.ibm.com/../.../../concepts/csesmsession_mgmt.htm
[ May 11, 2005: Message edited by: Adeel Ansari ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Confusion in URL Rewriting