<%
Dim sTemp: sTemp = Request.ServerV ariables("PATH_ INFO")
Response.Redire ct "/login.asp?ret=" & sTemp
%>
Or
<%
Dim sTemp: sTemp = Request.ServerV ariables("URL")
Response.Redire ct "/login.asp?ret=" & sTemp
%>
Or
<%
Dim sTemp: sTemp = Request.ServerV ariables("SCRIP T_NAME")
Response.Redire ct "/login.asp?ret=" & sTemp
%>
.... and if there's a querystring to go with it;
<%
Dim sTemp: sTemp = Request.ServerV ariables("PATH_ INFO")
Dim sQuery: sQuery = Request.ServerV ariables("QUERY _STRING")
Response.Redire ct "/login.asp?ret=" & sTemp & "?" & sQuery
%>
--
Regards
Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk
Keeping it FREE!
"Katie" <Dn*********@gm ail.comwrote in message
news:11******** *************@m 73g2000cwd.goog legroups.com...
Hi,
I want to be able to send users links to pages in my website. But if
they arent logged in I want them to first be redirected to the login
page and after they login automatically be redirected to the page i
sent them in the link. How would i accomplish this.
Thanks for your time and help
:)