You are here

protected function SessionProxy_Backend_Base::sessionIsEmpty in Session Proxy 7

Is the current session is empty.

Return value

bool

4 calls to SessionProxy_Backend_Base::sessionIsEmpty()
SessionProxy_Backend_Base::start in lib/SessionProxy/Backend/Base.php
Start session.
SessionProxy_Backend_Base::__construct in lib/SessionProxy/Backend/Base.php
Default constructor.
SessionProxy_Backend_Default::regenerate in lib/SessionProxy/Backend/Default.php
Regenerate the current session.
SessionProxy_Backend_Native::regenerate in lib/SessionProxy/Backend/Native.php
Regenerate the current session.

File

lib/SessionProxy/Backend/Base.php, line 122

Class

SessionProxy_Backend_Base

Code

protected function sessionIsEmpty() {
  return !isset($_SESSION) || empty($_SESSION) || isset($_SESSION['uid']) && 1 == count($_SESSION);
}