I am migrating my project from Cakephp 2 to Cakephp 3. So after i decide to migrate the phpCas authentication, there is an infinite redirection before the navigator decide to stop the process. After a lot of research, I found that the problem was that my session variable is not kept after redirection. I looked at the session numbers present and indeed with each redirection the session id is different and the information about my user has disappeared. I configured the session using the default mode of php in the app.php. I also thought that the session should find its number after the redirection using cookies and that maybe mine were not activated. When I check the phpCas log, the login is fine and i find my user name. Everything goes well, only my session variable is not kept after redirection.
Asked
Active
Viewed 115 times
0
-
sorry, what is question? Have you any code? – Salines Aug 26 '20 at 09:20
-
1Problem solved, it was the hour read by cakephp and the duration of the cookies. Just change the timezone and session.cookie_lifetime in app.php. – Dany Naumann Aug 26 '20 at 09:29