Hi bog_tom
You have seen in secure web sites that if there is no activity on the form for certain time you are logged out.Similiar results can be acheived by using the following code below.
The code below shows how to Log out user's when there is no activity on a database?
---GLOBAL DECLARATIONS ------
Dim elapsedTime As Integer
Dim elapsedTimer As NotesTimer
%INCLUDE "lsconst.lss"
------POSTOPEN FORM EVENT ------
Sub Postopen(Source As Notesuidocument)
Dim session As New NotesSession
Set elapsedTimer = session.CreateTimer()
elapsedTimer.Interval = 1
elapsedTimer.Comment = "Elapsed time since opening document"
elapsedTime = 0
On Event Alarm From elapsedTimer Call elapsedTimerHandler
End Sub
-----ELAPSEDTIME SUBROUTINE-------
Sub elapsedTimerHandler(Source As NotesTimer)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
elapsedTime = elapsedTime + 1
Print elapsedtime
If elapsedtime=4 Then
If uidoc.EditMode Then
Call uidoc.FieldSetText( "SaveOptions", "0" )
uidoc.close
Messagebox ("Temp-1")
Else
uidoc.close
twoLiner = |This message is on two lines-2|
Messagebox twoLiner, MB_OK, "Demo"
End If
End If
End Sub
eknori