Hello All
i am using a custom security methods in my web site
i have a SSUser class , at login page i create an object of this class
this is my Login in button OnClick event :
protected void btnLogin_Click(object sender, EventArgs e)
{
JGEduUser loginUser = JGEduUser.Authenticate(txtUsername.Text, txtPassword.Text);
if (loginUser != null)
{
Session.Add("User", loginUser);
FormsAuthentication.RedirectFromLoginPage(loginUser.Username, false);
if(!loginUser.User.usrMustChangePassword.HasValue ||loginUser.User.usrMustChangePassword.Value)
{
Response.Redirect(WebTools.ChangePasswordPage);
}
}
Now ,everything is working great
the problem is , when i try to access loginUser in other page sometimes it seems that session is ended ! , the authentication session and my ...
Go to the complete details ...