Session Management with a site server
I have a stored proc that sets the security levels. There are three login
levels 1 annonimous,2 we check for email and password,3 we know the user
and he is logged in. We have a session time out which is 15 min after session
users are redirected to login page and they are in login level 2 . To calculate
time out, Stored proc records lastdatetime activity
and if its less then sessiontimeout column in the database which is 15 min
then user in login level 3 else 2. The problem
is that when user closes browser and opens it back in for example in 2 min
he is still in login level 3. Where can I wright a code
so when user closes browser and opens it back in to 2 min set login level
to 2 and redirect to login page.
We are not using session variables its based on site server which creates
shopper id and writes a cookie.
Let me know if you have any questions
Thank you in advance
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL