0% found this document useful (0 votes)
33 views

Persistent Cookies

Each rewriting technique has advantages and disadvantages. Using extra path information works for all servers and methods but does not work well if the extra path is used as true path information. ULR rewriting has similar advantages and disadvantages to hidden form fields but works for dynamically created documents like help servlets. Persistent cookies offer an elegant way to implement session tracking where cookies automatically provide a client's session ID for each request and can be customized for extra power and versatility.

Uploaded by

Lakshmi Pujari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

Persistent Cookies

Each rewriting technique has advantages and disadvantages. Using extra path information works for all servers and methods but does not work well if the extra path is used as true path information. ULR rewriting has similar advantages and disadvantages to hidden form fields but works for dynamically created documents like help servlets. Persistent cookies offer an elegant way to implement session tracking where cookies automatically provide a client's session ID for each request and can be customized for extra power and versatility.

Uploaded by

Lakshmi Pujari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Each rewriting technique has its own advantage and disadvantage

Using extra path information works on all servers, and it works as a target
for forms that use both the Get and Post methods. It does not work well if
the servlet has to use the extra path information as true path information
he advantages and disadvantages of U!".rewriting closel# match those
of hidden form fileds,he ma$or difference is that U!" rewriting works for
all d#namicall# created documents, such as the %elp servlet, not $ust
forms. &ith the right server support, custom U!" rewriting can even work
for static documents.
Persistent Cookies:
' fourth technique to perform session tracking involves persistent cookies.
' cookie is a bit of information. sent b# a web server to a browser that can
later be read back form that browser. &hen a browser receives a cookie, it
saves the cookie and there after sends the cookie back to the server each
time it accesses a page on that server, sub$ect to certain rules. (ecause a
cookie)s value can uniquel# identif# a client, cookies are often used for
session tracking.
Persistent cookies offer an elegant, efficient eas# wa# to implement
session tracking. *ookies provide as automatic an introduction for each
request as we could hope for. +or each request, a cookie can
automaticall# provide a client)s session I, or perhaps a list of clients
performance. he abilit# to customi-e cookies gives them extra power and
versatilit#.

You might also like