Try using the cgi.http_referer variable to obtain the page the user came from... then 
cflocate (or if using MX, use server side redirect) them to that page once logged in.

hth,

mike


-----Original Message-----
From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 3:10 PM
To: CF-Talk
Subject: Redirection after login


Got a question for you folks.

If I try to access this page: 
http://www.domain.com/page.cfm?param1=value1&param2=value2&param3=value3

And I have a check on that page that sees if a user is logged in, and if they are, no 
problem display the page, if they aren't, I want to redirect them to a login.cfm page 
that will let them log in and then return them to wence they came, back to the above 
url.

Note: the url above is unknown .. it could be "anotherpage.cfm?param1 ....."

How are you all doing this?  Are some of u just passing the location as a url variable?

Just looking for some good suggestions for dynamically returning folks from where they 
came.  A best practice sorta thing!

Thank You
Paul Giesenhagen
QuillDesign


______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
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