Session::delete( null|string $key = null )
Description #
Delete all session data or just a key=>value pair.
Parameters #
- $keynull | string (Optional) Name of key. On
null
all session data is deleted. Default value: null
Source #
File: includes/class/class-session.php
public function delete( $key = null ) { // Delete all session data if no key set. if ( null === $key ) { delete_transient( 'anspress_session_' . $this->id ); return; } $this->set( $key ); }
Expand full source code Collapse full source code View on GitHub: includes/class/class-session.php:209
Add your comment