After authentication a user I've been storing the login status in a session variable. Basically, like this,
UserLoginStatus is an enum I created to store possible login status codes so I don't have to worry about mistyping the codeCode:Session.Item("UserLoginStatus") = UserLoginStatus.LoginSuccessful
Anyway, my question is about storing the status is a session variable. Is that good/bad/ok? What is the best way to store login status?Code:Public Enum UserLoginStatus Timeout Logout InvalidUserName WrongPassword AccountLocked AccountDisabled NotAuthorized LoginSuccessful End Enum
Thanks




Reply With Quote