Access cakephp session variable from php script?

How can you access cakephp session variable from php script?

I tried $_SESSION , but it returns empty. I specifically want to get Auth session information.

thanks

+3
source share
1 answer

try it...

session_name ('CakePHP');

session_start ();

print_r ($ _ SESSION);

+10
source

Source: https://habr.com/ru/post/904409/


All Articles