Skip to content

Conversation

@anzenehansen
Copy link

Default behavior is still to persist data, but now option exists in Session::read() to purge data after retrieval.

Use case: using Session class for temporary storage only (i.e.: some ID or something that needs to be carried over after a redirect but not used after).

$this->Session->read("some name"); // Default behavior, "some name" value persists after call

$this->Session->read("some name", false); // "some name" will be cleared after call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant