phpcas

Warning: session_destroy(): Trying to destroy uninitialized session with phpCas

你离开我真会死。 提交于 2019-12-12 02:31:38
问题 I am facing a problem today with the phpCas library https://wiki.jasig.org/display/CASC/phpCAS. Problem is the following, when I try to use some logout function, I got the message Warning: session_destroy(): Trying to destroy uninitialized session After giving a quick look into the phpCas's library code, I manage to figure out where the problem comes from, here is a snippet of a logout function : session_write_close(); header('Location: '.$cas_url); phpCAS::trace("Prepare redirect to : ".$cas

Using CakePHP 3.0 plugin

徘徊边缘 提交于 2019-12-04 06:19:29
问题 I'm currently building a new CakePHP app with version 3.0.0-RC1, and trying to install and use the jasig/phpCAS plugin. Using this guide, I've run the following command from the command prompt: composer require jasig/phpcas This correctly copies the jasig/phpcas files into the vendor directory of my app, but one of the other files that the guide says should be updated (vendor/cakephp-plugins.php) doesn't even exist. I've had a tough time accessing the plugin. I want to be able to call its

Using CakePHP 3.0 plugin

只愿长相守 提交于 2019-12-02 07:49:21
I'm currently building a new CakePHP app with version 3.0.0-RC1, and trying to install and use the jasig/phpCAS plugin. Using this guide, I've run the following command from the command prompt: composer require jasig/phpcas This correctly copies the jasig/phpcas files into the vendor directory of my app, but one of the other files that the guide says should be updated (vendor/cakephp-plugins.php) doesn't even exist. I've had a tough time accessing the plugin. I want to be able to call its static methods, and I keep getting errors of the form: Error: Class 'App\Controller\phpCAS' not found .