Automatically redirecting entry page

Results 1 to 2 of 2

Thread: Automatically redirecting entry page

  1. #1
    Join Date
    Dec 1969

    Default Automatically redirecting entry page

    I&#039ve got a site that is based on the visitors state that they pick when they enter the site. Based on their selection, I set a cookie and use the cookie throughout the site to pick the correct state-specific page to display. When the enter the site via "" everything works, when they enter it as "" the cookie isn&#039t being set or read. Is there a way to identify that they came from "" and redirect them to "" so the cookies will process correctly? Thanks<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Automatically redirecting entry page

    Try checking the SERVER_NAME Server Variable when the User enters your page. If it&#039s anything other than redirect them to that address...<BR><BR>example in .asp<BR>&#060;%<BR>if Request.ServerVariables("SERVER_NAME")&#060;&#062; "" then<BR> Response.Redirect("")<BR>end if<BR>%&#062;<BR>

Posting Permissions

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