Solved

difference between cookies & URL rewriting?

Posted on 2004-08-05
2
3,834 Views
Last Modified: 2013-12-10
difference between cookies & URL rewriting?
0
Comment
Question by:she1
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now