u can try this instead of doing session_onend() to track the logout time of the visitors:
<script language="JavaScript">
function exit() {
'the coding u want... e.g.
alert("hello!");
}
</SCRIPT>
'call the function exit() when u close the application
<BODY onunload =...
hi, i have the same problem as schase... my session_onstart did work but not for session_onend when i close the application. for my case, i want to track the logout time but cannot. Is it because of the OS i am using as i am using win xp??
u could try this:
<%@ Language=VBScript %>
<%
dim d, f
d = date() 'get the date of today
f = d + 14 'get the date after 14 days
'setting up the database connection
dim conn, rs, cmd
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open...
i don't know if this is the type of coding u want...
'setting up the database connection
dim conn, rs, cmd
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "DSN=cecpeople;UID=Account Name;PASSWORD=password;"
set rs = server.CreateObject...
hi, i need help on storing the user logout time in the database. i can only track the user login time in the session_onstart in global.asa, but i can't seem to update the user logout time into the database when the user close the application. Do anyone know how i can track the user logout time??
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.