Internal

class OC\Session\Internal
Class Internal
wrap php’s internal session handling into the Session interface
Source:lib/private/Session/Internal.php#48
Parent:OC\Session\Session

Methods

public OC\Session\Internal::__construct($name)
Source:

lib/private/Session/Internal.php#53

Parameters:
  • $name (string)
Throws:

\Exception

public OC\Session\Internal::set($key, $value)
Source:

lib/private/Session/Internal.php#71

Parameters:
  • $key (string)
  • $value (int)
public OC\Session\Internal::get($key)
Source:

lib/private/Session/Internal.php#80

Parameters:
  • $key (string)
Returns:

mixed

public OC\Session\Internal::exists($key)
Source:

lib/private/Session/Internal.php#91

Parameters:
  • $key (string)
Returns:

bool

public OC\Session\Internal::remove($key)
Source:

lib/private/Session/Internal.php#98

Parameters:
  • $key (string)
public OC\Session\Internal::clear()
Source:lib/private/Session/Internal.php#104
public OC\Session\Internal::close()
Source:lib/private/Session/Internal.php#111
public OC\Session\Internal::regenerateId($deleteOldSession=true, $updateToken=false)
Wrapper around session_regenerate_id
Source:

lib/private/Session/Internal.php#123

Parameters:
  • $deleteOldSession (bool) Whether to delete the old associated session file or not.
  • $updateToken (bool) Wheater to update the associated auth token
Returns:

void

public OC\Session\Internal::getId()
Wrapper around session_id
Source:lib/private/Session/Internal.php#164
Returns:string
Throws:\OCP\Session\Exceptions\SessionNotAvailableException
Since:9.1.0
public OC\Session\Internal::reopen()
Source:lib/private/Session/Internal.php#175
Throws:\Exception
public OC\Session\Internal::trapError($errorNumber, $errorString)
Source:

lib/private/Session/Internal.php#184

Parameters:
  • $errorNumber (int)
  • $errorString (string)
Throws:

\ErrorException