Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Location
    South East UK. 35 miles east of London, in sight of the River Thames.
    Posts
    297
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Response.Redirect to an external url

    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

  • #2
    teh Moderatorinator
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,472
    Thanks
    4
    Thanked 40 Times in 40 Posts
    What do you get when you response.write(strRedirect) ?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •