Solved

difference between cookies & URL rewriting?

Posted on 2004-08-05
2
3,771 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 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

20 Experts available now in Live!

Get 1:1 Help Now