cookies - loading a diferent page when a user visi

Results 1 to 2 of 2

Thread: cookies - loading a diferent page when a user visi

  1. #1
    Isabelle Guest

    Default cookies - loading a diferent page when a user visi

    Hi,<BR><BR>I want a different page being loaded when a user visits my site for the first, second, third,... time. I &#039ve read somewhere this should be done wih cookies, but I can&#039t get the thing into work.<BR><BR>Can anyone help me?<BR>Thanks a lot<BR><BR>Isabelle

  2. #2
    SteveJ Guest

    Default RE: cookies - loading a diferent page when a user

    You can try this:<BR><BR>intNumVisits = request.cookies("numvisits")<BR><BR>if intNumVisits &#060;&#062; "" then<BR> select case intnumvisits<BR> case 2<BR> response.cookies("numvisits") = intNumVisits +1<BR> response.redirect("http://you.go.here/2)<BR> case 3<BR> response.cookies("numvisits") = intNumVisits +1<BR> response.redirect("http://you.go.here/3)<BR> case else<BR> response.cookies("numvisits") = intNumVisits +1<BR> response.redirect("http://you.go.here/else")<BR> end select<BR>else<BR> response.cookies("numvisits") = 1<BR> response.redirect("http://you.go.here/1)<BR><BR>end if<BR><BR><BR>IT WILL GO SOMETHING LIKE THAT.. just thought it up on the fly. With a little debugging, it can work.<BR><BR>SteveJ<BR><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
  •