SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jul 2012
    Coeur d'Alene, Idaho, United States
    0 Post(s)
    0 Thread(s)

    Losing sessions on the second click

    After the login, the sessions are visible. You can see them in the querystring and so on. But if the page is reloaded, or a link is clicked the session is destroyed.

    At the top of the page we have this conditional. The page has a fully qualified URL. I am removing for this post only.
    if session("AffiliateID") = "" then Response.Redirect "https://removed/login.asp"
    basic HTML

    Now if this page is reloaded the session is destroyed and they are forced to login in again.
    Any idea why this is happening?

  2. #2
    SitePoint Guru
    Join Date
    Jun 2007
    0 Post(s)
    0 Thread(s)
    what you have shown us is valid code so the problem must be somewhere else in your code.

    Test with just that code in a page, there should not be a problem. Do you have any includes in your actual page ?

Tags for this Thread


Posting Permissions

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