...

View Full Version : Response.Redirect to an external url



Gary Williams
12-12-2006, 05:03 PM
Hi All,

I currently use this script to log out users from an asp application

<%
session("AgentName") = ""
session.Abandon()
Response.Redirect ("http://www.websiteurl.com")
%>

This works fine but as I have a number of agents, I want to modify the script to:

<%
strRedirect = session("websiteurl")
session("AgentName") = ""
session.Abandon()
Response.Redirect (strRedirect)
%>

where session("websiteurl") has been set with the correct url earlier in the applications' process from the agents details table.

I can't get the combination of ' , ", and & to get the line

Response.Redirect (strRedirect)

working. Mainly because I can't get to grips with the meanings and influence of ' , ", and & on a scripts operation.

Help!

Thanks

Gary

Brandoe85
12-12-2006, 05:18 PM
What do you get when you response.write(strRedirect) ?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum