This topic is locked

successfully logged out message

4/14/2007 1:05:59 PM
ASPRunnerPro General questions
A
agmoraojr author

hello admin,
how can I declare this code into aftersuccessful logout, assuming this is the output
"You have successfully logged out"
User Logon 14/04/2007 19:57:14 Logout 14/04/2007 19:58:43

Sergey Kornilov admin 4/15/2007

First of all you need to add a field to login table where logon datetime will be stored (using AfterSuccessfulLogin event)
After that modify the following code snippet in login.asp to add the message.

<%if request.form("a")="logout" or request.querystring("a")="logout" then

session.Abandon()

Response.Cookies("username")=""

Response.Cookies("password")=""

Response.Redirect "login.asp"

response.end

end if%>

A
agmoraojr author 4/9/2008

hi admin,
can I put that "successfully logout" message to login.asp?, HoW?
thanks.

First of all you need to add a field to login table where logon datetime will be stored (using AfterSuccessfulLogin event)

After that modify the following code snippet in login.asp to add the message.

J
Jane 4/10/2008

Hi,
use Login page: Before process event on the Events tab.

Here is a sample:

if request.form("a")="logout" or request.querystring("a")="logout"

Response.write "your message"

end if

A
agmoraojr author 4/18/2008

thank for replying jane
but I need the date& time after the user click the logout link
example:
Summary of Activitis in your Session
"You have successfully logged out"
User Logon 20/04/2008 16:44:2514
Logout 20/04/2008 16:54:16
thank you,

Hi,

use Login page: Before process event on the Events tab.

Here is a sample: