numbenator
24 Aug 2005, 09:23 AM
Hi,
refering to http://www.collagenrx.co.uk/Student%20Space/home.asp
I set 2 session variables on the above login screen.
After you log in (username steve password admin) you can see to the left above the navigation that the session variable is shown. (steve)
My problem is that it resets after a very short period of time.
Each page I call beyon login checks the value of session variable and if not exist then redirects to the home page.
if Session("loggedIn") = "no" OR Session("loggedIn") = "" then
response.redirect "home.asp"
end if
If you messa round lookin gat stats etc and going through pages, all works fine and then suddenly, the session variable is reset and i am redirected to home.asp only after a minute or so if that.
Is there a logical reason why I am not able to hold the session variable.
Steve
refering to http://www.collagenrx.co.uk/Student%20Space/home.asp
I set 2 session variables on the above login screen.
After you log in (username steve password admin) you can see to the left above the navigation that the session variable is shown. (steve)
My problem is that it resets after a very short period of time.
Each page I call beyon login checks the value of session variable and if not exist then redirects to the home page.
if Session("loggedIn") = "no" OR Session("loggedIn") = "" then
response.redirect "home.asp"
end if
If you messa round lookin gat stats etc and going through pages, all works fine and then suddenly, the session variable is reset and i am redirected to home.asp only after a minute or so if that.
Is there a logical reason why I am not able to hold the session variable.
Steve