TechnoBuzz

A Techno Blog, mainly about Java

URL rewriting or cookies

For session managment, there are two schools of thought: cookie-based / URL rewriting .

cookie based: a message (cookie) containing user’s information is sent to the browser by the Web server. This cookie is sent back to the server when the user tries to access certain pages. By sending back the cookie, the server is able to identify the user and retrieves the user’s session from the session database; thus, maintaining the user’s session.

URL rewriting: all links that are returned to the browser or that get redirected have the session ID appended to them. When the user clicks these links, the rewritten form of the URL is sent to the server as part of the client’s request. The servlet engine recognizes the session ID in the URL and saves it for obtaining the proper object for this user. To use URL rewriting, HTML files cannot be used for links. To use URL rewriting, JSP files must be used for display purposes.

this link mentions two methods for URL rewriting:

http://www.apacheref.com/ref/mod_rewrite.html

http://www.seoconsultants.com/windows/isapi/

Alternatively, the session object hides the details of dealing with the cookies or rewriting URLS.

Advertisements

November 16, 2005 - Posted by | Web Design

1 Comment »

  1. лучше уже в директе кликов заказать чем такие запросы продвигать)

    Comment by NNdrovec | January 12, 2010 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: