> -----Original Message-----
> From: Burns, John D [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, January 26, 2005 12:35 PM
> To: CF-Talk
> Subject: RE: home page redirect
> 
> Check the cgi.http_referer variable for the domain name that 
> you're expecting, if it's not in there, cflocation to the 
> home page, if it is in there, let it be.  It will be blank if 
> the person types it in themselves. 

What happens if the user is running software that blocks the sending of the
referring page?  The user will NEVER be able to access any pages on the site
except the home page!  Since the browser sends the referrer, this is a very
bad idea.  

The session variable idea is better, but if the user chooses not to accept
cookies from the site, that's out the window as well, and you'll wind up
with the same problem of not being able to access any other pages on the
site except the home page.  You'd have to pass the cfid and cftoken in the
URL to make this work correctly.

Andy



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191893
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to