Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#16 access to Session::checkSessionTime

open
nobody
None
5
2010-08-23
2010-08-23
Jonathan Wakely
No

when an application gets the onLogout() callback from Session::disconnect() there is no obvious way for the application to tell if the disconnection was because the session reached its configured EndTime, or if the session disconnected unexpectedly.

this makes it difficult for the application to know whether the logout was expected or is exceptional and should be logged or trigger an alert of some kind.

the application could ignore expected logouts if it could detect them e.g. if Session::enabled() returned false or if Session::checkSessionTime() was public

Discussion