[Javascript] Mimicking session state

Filipiak, Bob (Contractor) filipiab at atsc.army.mil
Tue May 1 06:59:10 CDT 2001


That is one of the primary uses of cookies, to check if a visitor has been
here before and when. The history object is intended for browser navigation.
Another solution would be to track the visit server side. 

Bob Filipiak (Contractor)
MCP 

-----Original Message-----
From: Rees, Mark (TWIi London) [mailto:mrees at twii.net]
Sent: Tuesday, May 01, 2001 6:36 AM
To: 'javascript at LaTech.edu'
Subject: [Javascript] Mimicking session state


Hello

I have to attempt to track sessions using client-side code only. The idea is
that every time a user visits the site, they see a new picture. Thus far the
only way I can see to mimick this is to set a cookie storing the image name,
and update it if more than a set period of time (say an hour) has elapsed
since the cookie was set. 

I had hoped to use the history object but all the most useful properties
(like next and previous) are quite rightly not available in most
environments.

Does anyone have any other ideas?

Thanks in advance

Mark

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010501/f40ed617/attachment.htm>


More information about the Javascript mailing list