I am using FormsAuthentication.SetAuthCookie Method in my application.after Client login i am setting FormsAuthentication.SetAuthCookie(txtUserNo.Text.Trim(), false);
and in web.config file i set
<authentication mode="Forms">
<forms loginUrl="PasswordEntry.aspx" path="/" timeout="1"></forms>
</authentication>
after 1 minute (Page refreshing) i am getting Administrator data.its not right.Please tell me where the problem is ? and the solution also.
Thanks in advance.
Rakesh.
Disable
slidingExpirationwhich is enabled by default and which renews your authentication ticket for yet another minute at every request: