Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

redirect to original page??

Status
Not open for further replies.

cyprus106

Programmer
Apr 30, 2001
654
I've got a site that has a user name and password and a 'remember me' option. When the user checks the 'remember me' and then OK, he goes to 'verifyLogin.asp'. In verifyLogin.asp, I've got this code:

<%
if bLoginSaved Then
Response.Redirect(&quot;default.asp?logged=&quot; & Request.Form(&quot;UsrName&quot;))

end if
%>

my problem is that the homepage is &quot;default.asp&quot;, and im trying to change the header to &quot;default.asp?logged=...&quot; I know this is illegal, but I don't know any other way to go back to the homepage and tell it that the user is logged in Cyprus
 
[tt]
How about checking the cookie on your default.asp page something like this

<%
if request.cookies(&quot;user&quot;)(&quot;login&quot;) = &quot;&quot; then
response.redirect &quot;login.asp&quot;
else
response.write &quot;Welcome to the Home Page <%=rsRecordset(&quot;login&quot;)
%>


Got ASP Error(s)? =
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top