public boolean startSession ( ) { synchronized ( sharedLock ) { SessionData session = loadSession ( ) ; if ( isSessionActive ( session ) ) { sharedLock . notifyAll ( ) ; return false ; } else { clearAll ( ) ; } sharedLock . notifyAll ( ) ; } return true ; }
Creates session if no session is active .