SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
-
Jul 2, 2012, 09:26 #1
- 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?
-
Jul 2, 2012, 20:47 #2
- Join Date
- Jun 2007
- Posts
- 691
- 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 ?
Bookmarks