Index

(session)

o2session_lock

boolean o2session_lock(eter $on)

When function is called without parameter (or passing TRUE) application is locked and current session is turned into an exclusive-administration session.
All other sessions are destroyed and new logins are not allowed from standard users.

When function is called with parameter FALSE application is unlocked and new logins are allowed again.

Function returns boolean new application lock status.

ATTENTION: This function is intended to be an administrative tool and only administrators and developers can call this function!


Parameters:
  1. $on
Related functions:

o2session_is_job