<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>RE: [Javascript] Mimicking session state</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>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. </FONT></P>

<P><FONT SIZE=2>Bob Filipiak (Contractor)</FONT>
<BR><FONT SIZE=2>MCP </FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Rees, Mark (TWIi London) [<A HREF="mailto:mrees@twii.net">mailto:mrees@twii.net</A>]</FONT>
<BR><FONT SIZE=2>Sent: Tuesday, May 01, 2001 6:36 AM</FONT>
<BR><FONT SIZE=2>To: 'javascript@LaTech.edu'</FONT>
<BR><FONT SIZE=2>Subject: [Javascript] Mimicking session state</FONT>
</P>
<BR>

<P><FONT SIZE=2>Hello</FONT>
</P>

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

<P><FONT SIZE=2>I had hoped to use the history object but all the most useful properties</FONT>
<BR><FONT SIZE=2>(like next and previous) are quite rightly not available in most</FONT>
<BR><FONT SIZE=2>environments.</FONT>
</P>

<P><FONT SIZE=2>Does anyone have any other ideas?</FONT>
</P>

<P><FONT SIZE=2>Thanks in advance</FONT>
</P>

<P><FONT SIZE=2>Mark</FONT>
</P>

<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Javascript mailing list</FONT>
<BR><FONT SIZE=2>Javascript@LaTech.edu</FONT>
<BR><FONT SIZE=2><A HREF="http://www.LaTech.edu/mailman/listinfo/javascript" TARGET="_blank">http://www.LaTech.edu/mailman/listinfo/javascript</A></FONT>
</P>

</BODY>
</HTML>