GeeCON Prague 2014*
The moose likes JSP and the fly likes what is url re writing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "what is url re writing" Watch "what is url re writing" New topic
Author

what is url re writing

Gevarghese
Greenhorn

Joined: Sep 25, 2006
Posts: 6
Can any one please tell me what url-rewriting
Achalveer Singh
Greenhorn

Joined: Sep 22, 2006
Posts: 25
url rewritting is a technique for session tracking.....
this is one of the technique out of five for session tracking.
we can use url rewritting if browser fails to support cookies......


ACHALVEER SINGH<br />SOFTWARE ENGINEER
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

I knew only three Can you enumerate the five techniques you're thinking ?
[ September 25, 2006: Message edited by: Satou kurinosuke ]

[My Blog]
All roads lead to JavaRanch
Gevarghese
Greenhorn

Joined: Sep 25, 2006
Posts: 6
what are the five technique for session tracking ? can you explain
Achalveer Singh
Greenhorn

Joined: Sep 22, 2006
Posts: 25
technique for session trackings--
1. URL rewritting
2. by using cookie
3. by session object
4.by hidden variables
fifth one i forget..............
Achalveer Singh
Greenhorn

Joined: Sep 22, 2006
Posts: 25
i think there are only four technique that i have posted for session tracking.
Karthikeyan Varadarajan
Ranch Hand

Joined: Jul 04, 2002
Posts: 98
I think we are achieving the third one(Session Object) by using other three (URL rewriting, hidden variable and cookies ).

Session object will hold all the values related to user session and we may have some id kind of things (JSessionId).

The client will send the ID thro Cookies or URL Rewriting or Hidden variables. Thro� that ID , the server will fetch the session Object.


The simplified version is ,

If a session is required , Container will create a Session object and assign a ID to it. The send the ID to the client thro� Cookies or URL Rewriting or Hidden variable (I think now a days we are not using the third one).

From the next request onwards from the same client you will get the ID. Using that ID, that server will fetch the corresponding session object and do whatever it need.

So there are only three ways .


~With Smile<br />VK
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Achalveer Singh:
technique for session trackings--
1. URL rewritting
2. by using cookie
3. by session object
4.by hidden variables
fifth one i forget..............



The session relies on one of the above methods for maintaining its state.
I know of three ways that containers maintain session state.
  • Session Cookies
  • URL-Rewriting
  • SSL Sessions


  • You, the application developer, could also use other methods, such as hidden form fields or cookies.


    Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: what is url re writing