Hi Alberto and Chris,
No problem.
If you are using sessions in PHP (i.e. session_start() ), you would likely also
need to call session_destroy(); before phpCAS::logout(). Alternatively, I've
heard of others using $_SESSION= null; prior to calling phpCAS::logout to
terminate the PHP application's session.
If your application's logout handler is on a different page (or you have a
slightly different requirement, besides sending the user to the CAS logout page
when he/she logs out), you can use
phpCAS::logoutWithRedirectService("http://url.to.page.after.logout")
Thanks for mentioning that detail and hope this helps,
-Neil
-----Original Message-----
From: Alberto Cabello Sánchez [mailto:[email protected]]
Sent: Friday, October 30, 2015 7:42 AM
To: [email protected]
Subject: Re: [cas-user] logout
On Thu, Oct 29, 2015 at 02:22:33PM +0000, Neil Sabol wrote:
> Good morning Chris,
>
> I've used something like the following for logout with phpCAS:
>
> require_once 'CAS.php';
> phpCAS::client(CAS_VERSION_2_0, 'your.cas.url', 443,
> 'yourcascontext'); phpCAS::setNoCasServerValidation();
> phpCAS::logout();
>
> You would substitute your own CAS values for your.cas.url and yourcascontext.
Will that log out from your application before redirecting elsewhere? Or it is
needed to do something like
session_destroy() ?
--
Alberto Cabello Sánchez
Universidad de Extremadura
--
You are currently subscribed to [email protected] as: [email protected] To
unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user