Forum Moderators: open

Message Too Old, No Replies

URL access for return after sign-in

URL function

         

HeadBut

8:06 pm on Nov 15, 2004 (gmt 0)

10+ Year Member



I just want to know how my users get to my sign-in page so I can return them after they sign in. If I can grab the url that should do it for me, unless someone else has a better idea.

Thanks
HB

webboy1

4:37 pm on Nov 16, 2004 (gmt 0)

10+ Year Member



Hi Headbut,

We have the same thing in one of our sites. Basically on our site the user can login from any page. So obviously once they enter there login details and hit submit, and their details are verified, we want them to be returned to the page they were on.

We have used a "Request.ServerVariables("HTTP_REFERER")" function.

When the user hits submit, their details are sent to an asp page used specifically to veriy the details. In this page we use the above code to pull the URL of the page the user has just come from.

We then have a redirect that kicks in once verification has taken place.

Hope this helps!

Webboy