Based on some of the comments in this thread, am I correct in assuming that
cookies must be enabled in the client's browser in order for session
variables to work?

Paul Sinclair

> -----Original Message-----
> From: Cameron Childress [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 21, 2000 4:32 PM
> To: CF-Talk
> Subject: RE: Session Variables
>
>
> Session variable *could* clear under those conditions, depending
> on how your
> app is configured.  Sessions are tracked (by default) automatically by CF
> with two automatically generated cookies, CFID and CFTOKEN.  As long as
> these cookies exist int he browser AND the session timeout has not been
> reached, the session will stay alive.
>
> > 1.  When the user goes to a different site.
>
> Doesn't destroy the cookies, therefore session does not timeout till the
> actual timeout value is reached.
>
> > 2.  When the browser closes.
>
> Again, this depends on the behavior of the cookies.  Are they written to
> disk or set to expire when the browser is closed.  I can't remember which
> setting CF uses automatically, but you can set CF not to automatically set
> the cookies, and do it yourself.  Look up the setclientcookies
> attribute in
> the cfapplication tag.  You can then set the cookies manually
> using cfcookie
> and by referring to session.cfid and session.cftoken.  cfcookie
> allow you to
> set the cookie timeout to anything you want, so have fun...
>
> > 3.  When the session timeout is reached.
>
> Yes, always...  When the session timeout is reached, the session is
> destroyed.
>
> -Cameron
>
> --------------------
> Cameron Childress
> ElliptIQ Inc.
> p.770.460.7277.232
> f.770.460.0963
>
> > -----Original Message-----
> > From: Kinley Pon [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, December 21, 2000 3:02 PM
> > To: CF-Talk
> > Subject: Session Variables
> >
> >
> > Hello everyone,
> >
> > I was under the understanding that session variables will reset
> > or clear out
> > under the following circumstances:
> > 1.  When the user goes to a different site.
> > 2.  When the browser closes.
> > 3.  When the session timeout is reached.
> >
> > Sometimes it appears the session variables are not resetting or clearing
> > out.
> >
> > Am I missing something
> >
> > Justme
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to