What's wrong with: IsDefined('Session.Cart')? If the Session is expired,
that structure will not exist. - Scott
+--------------------------+---------------------------+
| SCOTT VAN VLIET | SBC SERVICES, INC. |
| Senior Analyst | ITO Enterprise Tools |
| Tel: 858.886.3878 | 7337 Trade St. Room 4000 |
| Pgr: 858.536.0070 | San Diego, CA 92121 |
| Email: [EMAIL PROTECTED] | http://www.sbc.com |
+--------------------------+---------------------------+
-----Original Message-----
From: Ben Densmore [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 11:50 AM
To: CF-Talk
Subject: Re: how to tell if a session has expired
I'm using this for a shopping cart I built, and the only session variable I
am creating is one called session.cart which creates a structure to store
the shopping cart stuff, I wanted to make it so if they add to the shopping
cart and the session expires then send them to a page that tells them their
session had expired, I don't use any login stuff for this app, that's why I
have been struggling to figure out how to do this.
Thanks,
Ben
At 02:48 PM 4/11/2002, you wrote:
>in your application page just do a
>
><cfif(not(isDefined("session.loggedIn")>
><cflocation url="login.cfm?expired=true">
></cfif>
>
>
>"Success is a journey, not a destination!!"
>
>
>
>Doug Brown
>----- Original Message -----
>From: "Ben Densmore" <[EMAIL PROTECTED]>
>To: "CF-Talk" <[EMAIL PROTECTED]>
>Sent: Thursday, April 11, 2002 11:39 AM
>Subject: how to tell if a session has expired
>
>
> > Can someone tell me how you can tell if a session has timed out? I just
> > want to redirect someone to a different page if their session has timed
> > out,I can't find any reference to this anywhere, I know it's gonna be
> > something so simple, but can't seem to find it.
> >
> > Thanks,
> > Ben
> >
> >
> >
>
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists