Memory

class OC\Session\Memory
Class Internal
store session data in an in-memory array, not persistent
Source:lib/private/Session/Memory.php#44
Parent:OC\Session\Session

Properties

protected static property OC\Session\Memory::$data
Source:lib/private/Session/Memory.php#45

Methods

public OC\Session\Memory::__construct($name)
Source:lib/private/Session/Memory.php#47
public OC\Session\Memory::set($key, $value)
Source:

lib/private/Session/Memory.php#56

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

lib/private/Session/Memory.php#65

Parameters:
  • $key (string)
Returns:

mixed

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

lib/private/Session/Memory.php#76

Parameters:
  • $key (string)
Returns:

bool

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

lib/private/Session/Memory.php#83

Parameters:
  • $key (string)
public OC\Session\Memory::clear()
Source:lib/private/Session/Memory.php#88
public OC\Session\Memory::regenerateId($deleteOldSession=true, $updateToken=false)
Stub since the session ID does not need to get regenerated for the cache
Source:

lib/private/Session/Memory.php#97

Parameters:
  • $deleteOldSession (bool)
public OC\Session\Memory::getId()
Wrapper around session_id
Source:lib/private/Session/Memory.php#107
Returns:string
Throws:\OCP\Session\Exceptions\SessionNotAvailableException
Since:9.1.0
public OC\Session\Memory::reopen()
Helper function for PHPUnit execution - don’t use in non-test code
Source:lib/private/Session/Memory.php#114