W3cubDocs

/CakePHP 3.8

Class MemoryStorage

Memory based non-persistent storage for authenticated user record.

Cake\Auth\Storage\MemoryStorage implements Cake\Auth\Storage\StorageInterface

Properties summary

  • $_redirectUrl protected
    string|null
    Redirect url.
  • $_user protected
    ArrayAccess|array|null
    User record.

Method Summary

Method Detail

delete()source public

delete( )

Delete user record.

Implementation of

Cake\Auth\Storage\StorageInterface::delete()

read()source public

read( )

Read user record.

Returns

ArrayAccess|array|null

Implementation of

Cake\Auth\Storage\StorageInterface::read()

redirectUrl()source public

redirectUrl( mixed $url = null )

Get/set redirect URL.

Parameters

mixed $url optional null

Redirect URL. If null returns current URL. If false deletes currently set URL.

Returns

mixed

Implementation of

Cake\Auth\Storage\StorageInterface::redirectUrl()

write()source public

write( array|ArrayAccess $user )

Write user record.

Parameters

array|ArrayAccess $user
User record.

Implementation of

Cake\Auth\Storage\StorageInterface::write()

Properties detail

$_redirectUrlsource

protected string|null

Redirect url.

$_usersource

protected ArrayAccess|array|null

User record.

© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.8/class-Cake.Auth.Storage.MemoryStorage.html