G
Guest
Hello,
I have a strange problem. I want to check the privilege of the login user
on each page and allow to display if has suff. priv. I am storing the
privilege is session variable.
I am checking on the page_load event like
if session("uid")="" then
response.redirect("loginverify.aspx?er=nlog")
elseif session("priv")<>0 then
response.redirect("loginverify.aspx?er=nsad")
end if
first time it is checking OK. When i modify code in VS.NET and rebuild the
project and refresh this page its automatically redirecting to
loginverify.aspx?er=nlog(first condition) eventhough the time b/w login and
modify and refresh is 2 mts.Actually the session timeout is 20 mts lah.
Why its like this? And, i declared session("priv")=0
But when i check on the page i need to check with
if session("priv")="0"
why?
Thanx in advance
I have a strange problem. I want to check the privilege of the login user
on each page and allow to display if has suff. priv. I am storing the
privilege is session variable.
I am checking on the page_load event like
if session("uid")="" then
response.redirect("loginverify.aspx?er=nlog")
elseif session("priv")<>0 then
response.redirect("loginverify.aspx?er=nsad")
end if
first time it is checking OK. When i modify code in VS.NET and rebuild the
project and refresh this page its automatically redirecting to
loginverify.aspx?er=nlog(first condition) eventhough the time b/w login and
modify and refresh is 2 mts.Actually the session timeout is 20 mts lah.
Why its like this? And, i declared session("priv")=0
But when i check on the page i need to check with
if session("priv")="0"
why?
Thanx in advance