Solved

difference between cookies & URL rewriting?

Posted on 2004-08-05
2
4,224 Views
Last Modified: 2013-12-10
difference between cookies & URL rewriting?
0
Comment
Question by:she1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 36

Expert Comment

by:Zyloch
ID: 11731658
Hi

Cookies are stored on the user's local computer. That means the user can modify them if they know how. It also means that users can delete them. Finally, most browsers can be configured not to support cookies for security reasons. However, cookies can be a great asset. You store information on the user's computer, so when you go from page to page on the web, you can always use that information without passing any information between the pages.

URL rewriting, I'm guessing, is to pass all the information you need through the URL. This has the advantage in that if users don't support cookies, it'll work fine. The downside, however, is that to pass information through the URL has limits to how long it can be and it can get messy and complicated.

Regards,
Zyloch
0
 
LVL 7

Accepted Solution

by:
damonf earned 50 total points
ID: 11734661
cookies and URL rewriting are two different ways of tracking sessions.  Cookies is the most commonly used method because it is completely transparent and has the lowest overhead.  Basically a cookie is created on the user's pc with an id number for the session.  Anytime the user comes back, the server can read the cookie, lookup the user's session by the id, and see if he is still active (or new).

URL rewriting accomplishes the task differently.  It is not transparent.  You actually have to encode the session ID into the pages of the application and pass it along every time a URL is submitted (e.g. in a hidden field or as part of a URL ... hence the name).  Most application servers do support URL rewriting, which means you don't actually have to handle the session stuff yourself ... once you take care of the URL part and make sure every page tracks the session Id, you write your application normally.  You just have to set your server to use URL rewriting as the session tracking mechanism.

The main advantage of URL rewriting is that is works even if cookies are turned off.

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question