Home > ASP Development > Quick redirect question

Quick redirect question



Hi all,



When i call logout.asp, it deletes the session etc etc and then redirects to main.asp.

main.asp is the main content, which opens in the main frame of the frameset, which is named index.html.



How can i change the redirect....

Code:


Response.Redirect("main.asp")


...so that it loads the full index.html file once again, and not load the index.html frameset into the window.



would it be like this?....

Code:


	Response.Redirect("index.html" target="_self")


?



Thanks all,



Steve



Rep points on offer as per usual for helpful posts

    
Guest


asp does not see frame so target won't work

so try something like the following in the logout page:



<%

Sessions.Abandon

url = "http://yourdomain.com/"

Response.Write("<script>" & vbCrLf)

Response.Write("targetframename.location.replace('" & url & "');" & vbCrLf)

Response.Write("</script>")

%>

Was this answer helpful ? Yes No   
Guest
 
 
Home - About Infoqu - Contact - Privacy Statement - Link to Infoqu - Bookmark Infoqu

Copyright 2007-2008 by Infoqu. All rights reserved