Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing cakephp session variable from a php script?

Tags:

cakephp

How can you access the cakephp session variable from a php script?

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

Thanks

like image 517
AlexBrand Avatar asked Mar 02 '26 09:03

AlexBrand


1 Answers

try this...

session_name('CAKEPHP');
session_start();
print_r($_SESSION);

like image 80
minaz Avatar answered Mar 06 '26 11:03

minaz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!