|
This resource contains
With this script, you can
4 javascript cookie functions
Cross-platform JavaScript
JavaScript functions for
view, add, modify and delete
that I wrote for various
utility class for creating,
setting, retrieving and
the cookies of your Web
website projects. I put them
reading, and deleting
deleting cookies. When
browser. It is useful for
together in this script.
cookies. Cookies can be
setting a cookie, you can
debugging dynamic Web sites.
They allow you to access,
either session or
specify cookie lifetime
assign, modify, and delete
persistent. Has ability to
instead of expiration date.
your cookies with
apply unlimited sub-values
Also, the resource contains
client-side code.
to a cookie. This allows you
several online examples that
to work within the confines
demonstrate cookies
of the 20 cookie per server
behaviour.
limit.
Date: Jul, 04 2006 Date: Mar, 14 2006 Date: Apr, 16 2005 Date: May, 10 2004 |
|
This script records the
Using cookies this script
This JavaScript example
This JavaScript uses cookies
date+time of your visitor's
saves the date of the user's
counts the number of visits
to get input from the user 1
last visit and displays it
last visit and compares the
to this site (page). It uses
time per users web session.
upon their return. If this
date of the last updated
that information to send the
It uses a non-persistent
is their first visit to your
date for the page. It then
user directly to the correct
cookie to prompt the user
site, a greeting message is
shows whether the page was
page on the site (via a
for a word - it then stores
shown instead. Uses cookies.
updated or not since his/her
parameter). A test-only
it for the rest of that web
last visit.
variable should be set to
browser's life. It will use
false to turn off the test
the value input and stored
mode.
in the cookie to put that
word onto the page that it
is loading.
Date: Nov, 25 2001 Date: Oct, 08 2001 Date: Dec, 08 2000 Date: Dec, 06 2000 |