Dave,

I'm not sure of your directory structure, but I do something like this....

The "logged in" home page is inside a "secure" directory that has an
application.cfm file that tests for the "logged in" status (i.e. cookie or
whatever you are using).  If they try and hit any page inside that secure
directory without logging in then they get kicked to yur "not logged in"
home page (or a logon form).

You could also check for logged in status in the root directory's
application.cfm so that if someone backs out of the logon page you can test
their status and show them the appropriate home page (or the opposite..see
they are logged in and send them to the secure home page).

HTH

Bryan Stevenson
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
p. 250.920.8830
e. [EMAIL PROTECTED]
---------------------------------------------------------
Allaire Alliance Partner
www.allaire.com

----- Original Message -----
From: "Dave Carabetta" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, January 03, 2002 7:46 AM
Subject: Stupid Back Button


> I have a question concerning the stupid Back button on a browser.
>
> We have a site where a user sees one home page if they are logged in and
> another if they are not. On the logged-in home page, the user has the
option
> to "Change User." They are then sent to a login page for the new user. On
> this page, a cookie and a few client variables which personalize the
user's
> experience are deleted. My problem is this: How can I make it so that if
the
> user hits the Back button after coming to the Change User page, they are
> automatically sent to the regular home page for users who are not logged
in?
> I have tried the <cfheader name="Expires" value="#Now()#"> method on both
> the home page and the change user page (just as a test), and while it
works
> the first time (the user is properly redirected upon hitting the back
> button), if I log in again, go to change the user, and then hit the Back
> button, the logged-in page appears. However, if I simply hit the Refresh
> button or click on any link on the logged-in page, the regular home page
for
> non-logged in users correctly appears. This obviously must be a caching
> issue, but the cfheader method doesn't seem to be working.
>
> Any ideas?
>
> Thanks,
> Dave.
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
> 
______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
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

Reply via email to