Dec 10, 2006 #1 Jaheel22 Technical User Jul 14, 2004 84 US How to redirect a user to the last visted page after the user is logged in ? Any alternative besides session variables ? Thanks much
How to redirect a user to the last visted page after the user is logged in ? Any alternative besides session variables ? Thanks much
Dec 10, 2006 1 #2 jbenson001 Programmer Jan 7, 2004 8,172 US Use the http referrer attribute to get the page that calls your login page Upvote 0 Downvote
Dec 10, 2006 #3 jbenson001 Programmer Jan 7, 2004 8,172 US Something like: Dim x As HttpRequest Response.Write(x.UrlReferrer) Upvote 0 Downvote
Dec 10, 2006 1 #4 ca8msm Programmer May 9, 2002 11,327 GB Also, there is a javascript method you can use (history.go(-1)) but remember not all users might have javascript capabilities. Also, the Referrer isn't always passed through so you'll have to check it exists first. ____________________________________________________________ Need help finding an answer? Try the Search Facility or read FAQ222-2244 on how to get better results. Upvote 0 Downvote
Also, there is a javascript method you can use (history.go(-1)) but remember not all users might have javascript capabilities. Also, the Referrer isn't always passed through so you'll have to check it exists first. ____________________________________________________________ Need help finding an answer? Try the Search Facility or read FAQ222-2244 on how to get better results.