|
I am new to website administration, a designer turned "programmer" overnight. Our public website links to 2 different production sites, both password protected. Everything has been running smoothly until last week, where users are able to login successfully, but they are getting logged out when trying to view additional pages. It's somewhat sparatic and sometimes if you hit the link 4-5 times, it lets you in, only to bounce you out again in a matter of time (only bounces you out when you click a new page, not while you are on the page).
From what I can see, based on my limited .asp experience, is that there is a server side include, checklogin.inc that each page is using. The code for checklogin.inc is:
<%
Dim uinstr
Dim res
uinstr = "?"
if Session("login") <> "yes" then
if Request("uin") = "" then
Response.Redirect("default.asp")
else
uinstr = "?uin=" & Request("uin") & "&"
res = SE.GetUserData(CLng(Request("uin")))
if res(0) <> 0 then Response.Redirect("Error.asp")
Session("login") = "yes"
Session("email")=res(1)
Session("userid")=res(2)
Session("type")=res(3)
Session("fname")=res(4)
Session("gr_email")=res(5)
end if
end if
%>
An example of the beginning code on a page that bounces me out would be:
<%@ Language=VBScript %>
<%Response.Buffer = True%>
<!--#include file="commscript.inc"-->
<!--#include file="checklogin.inc"-->
<!--#include file="StylesNCodesLinking.inc"-->
Our initial login page has coding like this:
<%@ Language=VBScript %>
<%
PageName="Login"
%>
<!--#include file="commscript.inc"-->
<%
se_cookie = Request.Cookies("seclient")
if se_cookie <> "" then
login = Left(se_cookie, InStr(se_cookie, "$") - 1)
password = Right(se_cookie, Len(se_cookie) - InStr(se_cookie, "$"))
res = SE.CheckUser(login,password, True)
if res(0) = 0 then
TempID = res(6)
uinstr = "?uin=" & TempID & "&"
Response.Redirect("news.asp" & uinstr)
end if
end if
%>
From what I can gather, there seems to be an issue with our "uin" that is generated as a TempID. Keep in mind that we can always login successfully, but when we try to navigate to another page, you get logged out and bounce back to the login page.
Could there be some reason why that "uin" isn't carrying over to each page? When I manually key in the url I am trying to reach and paste in the "uin" issued to me initially, I get to the page I am trying to get to.
PLEASE HELP!!!
Thanks so much.
|