close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Capturing logout from timeout

Thread began 10/28/2011 9:53 am by sharon39426 | Last modified 11/01/2011 6:26 am by Jason Byrnes | 1517 views | 5 replies |

sharon39426

Capturing logout from timeout

When a user logs out by clicking a logout button, I am able to capture the logout event and send it to my audit trail data table. I also need to capture the logout event when the user is logged out due to timeout. Where is this event stored? Any information you can provide to help me send the logout event to the database would be appreciated. I'm using classic asp with a SQL database.

Thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

see the following post on stackoverflow:
design-classic-asp-applications-to-detect-session-expiration-dynamically

Sign in to reply to this post

sharon39426

Need to capture the event and record in an audit trail.

Thanks, but the link only shows how to timeout the session. My user is already being logged out, I just need to record this event to the audit trail data table. Right now I show a bunch of logins but no logouts if the user is logged out because the session has timed out. I need to show that each one who logged in also logged out. Since the user is not clicking a logout button (which I can capture), how can I record the logout to my audit trail?
Thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

no, the link shows you a script that will start a counter on page load to check if it is idle long enough to trigger the session time out, then redirect to another page:

<head>
<script type="text/javascript">
<!--
function redirect(url) {
window.location = url;
}
function beginSessionTimer() {
// 30000ms = 30s
window.setTimeout(redirect, 30000,
"http://www.yoursite.com/login.asp?session=clear");
}
//-->
</script>
</head>
<body onload='beginSessionTimer();'>
</body>



on the login.asp?session=clear" use the session=clear qurystring variable to trigger the update to mark the user as logged out.

Sign in to reply to this post

sharon39426

how does that store the logout in the database? the user is already being logged out, I don't need to create a counter and log them out, they are already getting logged out. I just need to record the logout event to the database.

Sign in to reply to this post

Jason ByrnesWebAssist

the point is that when the counter reaches 0, they are logged because the session has timed out.

So this script redirects to a page where you can update the status in your database.

I understand that the user is already logged out, but your using the script to redirect to a page where you can act on that fact

you need to add the Update record behavior to the page that script redirects to to update the status in the database.

the script is giving you a way to create a session timed out trigger, you need to create the page that will act on it.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...