W3cubDocs

/CakePHP 4.1

Class MemoryStorage

Memory based non-persistent storage for authenticated user record.

Namespace: Cake\Auth\Storage

Properties summary

  • $_redirectUrl protected
    string|array|null

    Redirect URL.

  • $_user protected
    \ArrayAccess|array|null

    User record.

Method Summary

Method Detail

delete() public

delete()

Delete user record.

read() public

read()

Read user record.

Returns

\ArrayAccess|array|null

redirectUrl() public

redirectUrl(mixed $url)

Get/set redirect URL.

Parameters

mixed $url optional

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

Returns

string|array|null

write() public

write(mixed $user)

Write user record.

Parameters

mixed $user

array or \ArrayAccess User record.

Property Detail

$_redirectUrl protected

Redirect URL.

Type

string|array|null

$_user protected

User record.

Type

\ArrayAccess|array|null

© 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/4.1/class-Cake.Auth.Storage.MemoryStorage.html