The best way to manage user session ?
-
Can anyone help to show me the best way to manage user session. I am using the Session object to store user session after user log in but I see that it not good and not stable. I am starting with ASP so that I do not have enough experience. Thanks for any helps.
-
Can anyone help to show me the best way to manage user session. I am using the Session object to store user session after user log in but I see that it not good and not stable. I am starting with ASP so that I do not have enough experience. Thanks for any helps.
-
I would try to use cookies instead of session vars if possile. Now cookies can be a hassel too, but it is far more scalible. Fear not my insanity, fear the mind it protects.
-
I would try to use cookies instead of session vars if possile. Now cookies can be a hassel too, but it is far more scalible. Fear not my insanity, fear the mind it protects.
You have to use a combination of 3 things: - database; - session vars; - cookies You can use cookies to leave some portion of the data in the users computer but for a session you wouldn't have to rely on persistent cookies. You should use per session cookies (see this option in Internet Options in IE) just to store an SID (session id) and the rest of the variables should be stored in the db. In every page you will get the sid, query the db and get all the variables you need for that session. It's even secured this way. ----- We are what we repeatedly do. Excellence, then, is not an act, but a habit.