Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UNL Information Services
NMC-PHP-Framework
Commits
b922116c
Commit
b922116c
authored
Jun 30, 2010
by
Tim Steiner
Browse files
Add the option for a return URL when generating the logout URL.
parent
d2d620eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
library/Unl/Cas.php
View file @
b922116c
...
...
@@ -261,9 +261,13 @@ class Unl_Cas
* Returns the URL to the CAS logout page.
* Intended usage: $this->_redirect($cas->getLogoutUrl());
*/
public
function
getLogoutUrl
()
public
function
getLogoutUrl
(
$returnUrl
=
''
)
{
return
$this
->
_casUrl
.
'/logout'
;
$url
=
$this
->
_casUrl
.
'/logout'
;
if
(
$returnUrl
)
{
$url
.
=
'?url='
.
urlencode
(
$returnUrl
);
}
return
$url
;
}
/**
...
...
Write
Preview
Supports
Markdown
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