ebco
12-27-2002, 09:58 AM
Cache problem
I am maintaing one session in that after user enter username & password i am checking my condition with this code
if rs("cnt")<>0 then
Session("username")= username
Response.Redirect "logindone.asp"
else
Session("username")= ""
Response.Redirect "login.asp?msgid=0"
end if
on logindone.asp page i am giving this condition
username = session("username")
if username="" then
Session("username")= ""
Response.Redirect "login.asp"
end if
& on logoutpage
session("username")=""
Response.Redirect "login.asp"
if user hit the page logindone.asp through typing url in addressbar first time it redirect to login.asp
but after login & doing logout then if he type into url & hit the
logindone.asp he can enter the page but if i refresh it takes me to login.asp
Why this is happening can anybody tell me if they faced such type of proble? Is this a proble of cache?
I am maintaing one session in that after user enter username & password i am checking my condition with this code
if rs("cnt")<>0 then
Session("username")= username
Response.Redirect "logindone.asp"
else
Session("username")= ""
Response.Redirect "login.asp?msgid=0"
end if
on logindone.asp page i am giving this condition
username = session("username")
if username="" then
Session("username")= ""
Response.Redirect "login.asp"
end if
& on logoutpage
session("username")=""
Response.Redirect "login.asp"
if user hit the page logindone.asp through typing url in addressbar first time it redirect to login.asp
but after login & doing logout then if he type into url & hit the
logindone.asp he can enter the page but if i refresh it takes me to login.asp
Why this is happening can anybody tell me if they faced such type of proble? Is this a proble of cache?