JSession::clear
From Joomla! Documentation
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JSession::clear[edit]
Description[edit]
Unset data from the session store.
public function clear (
$name
$namespace= 'default'
)
Parameter | Type | Default | Description |
---|---|---|---|
$name | string | Name of variable | |
$namespace | string | 'default' | Namespace to use, default to 'default' |
- Returns mixed The value from session or NULL if not set
- Defined on line 375 of libraries/joomla/session/session.php
See also[edit]
- JSession::clear source code on BitBucket
- Class JSession
- Subpackage Session
- Other versions of JSession::clear
User contributed notes[edit]
Code Examples[edit]