Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
ae3be037
Commit
ae3be037
authored
Nov 28, 2006
by
Martyn Smith
Committed by
Martyn Smith
Nov 28, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added unset method to $SESSION
parent
697b004a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
htdocs/auth/session.php
htdocs/auth/session.php
+10
-0
No files found.
htdocs/auth/session.php
View file @
ae3be037
...
...
@@ -77,6 +77,16 @@ class Session {
$_SESSION
[
$key
]
=
$value
;
}
/**
* Clears the session property keyed by $key (by setting it to null).
*
* @param string $key The key to set.
*/
public
function
set
(
$key
)
{
$this
->
ensure_session
();
$_SESSION
[
$key
]
=
null
;
}
/**
* Adds a message that indicates something was successful
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment