p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

html_code_clinic thread: IE5 programmers reference- 'cookie per session'


Message #1 by "Mark Carr" <markc@w...> on Tue, 12 Sep 2000 15:34:18 +0100
Hi Ken
You are of course right about this method, but there is one pitfall
- the server-roundtrip  [Posselt, Ivan]  !

> -----Original Message-----
> From:	Ken Schaefer [SMTP:ken@a...]
> Sent:	Friday, September 15, 2000 16:35
> To:	HTML Code Clinic
> Subject:	[html_code_clinic] Re: IE5 programmers reference- 'cookie
> per session'
> 
> > > Is it possible to check whether the clients browser has 'cookie per
> session'
> > > (not stored on disk) enabled or not. The Property 'cookieEnabled' only
> checks > the ordinary cookie (stored on disk).
> >
> > I don't believe it is, you are correct that the Navigator object would
> be
> > a place to find such a beast, but sessions (and the session cookie in
> asp)
> > work slightly differently. If these session cookies are not stored on
> the
> > user's hard disk, then where are they stored? I'll admit I don't know.
> 
> The per-session cookies are stored in memory.
> To check if they are enabled, set a session variable on page1.asp, and
> then
> attempt to retrieve it on page2.asp
> 
> ---page1.asp---
> session("testcookie") = "cookieset"
> 
> ---page2.asp---
> If session("testcookie") <> "cookieset" then
>     ' either the session has already timed out or
>     ' the user does not support session cookies
> End if
> HTH
> 
> Cheers
> Ken

  Return to Index