<%@ Language=VBScript %> <% Option Explicit %> canam main page

<% 'looks to see if user has a cookie set for hplocation and the homepage switch 'if the user has no hplocation set then it is their first visit so it sets the default home page to canamIntro 'if the user has choosen not to remember thier last page homepage will = hpn, so it sets the home page back to canamIntro dim hpLocation, homePage hpLocation = request.Cookies("hpLocation") homePage = request.Cookies("homePage") if homePage = "hpn" or hpLocation = "" then hpLocation = "canamIntro.asp" Response.cookies("hpLocation") = hpLocation Response.Cookies("hpLocation").Expires = Date() + 366 end if %>

Click to increase scroll speed
Click to decrease scroll speed
Send this page to a friend!