SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Jul 2012
    Location
    Coeur d'Alene, Idaho, United States
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    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"
    %>
    <body>
    basic HTML
    </body>



    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
    Posts
    686
    Mentioned
    0 Post(s)
    Tagged
    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

Bookmarks

Posting Permissions

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