从php脚本访问cakephp会话变量? [英] Accessing cakephp session variable from a php script?

查看:98
本文介绍了从php脚本访问cakephp会话变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从php脚本访问cakephp会话变量?

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

我尝试了 $ _ SESSION 返回空。我特别想获得Auth会话信息。

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

感谢

推荐答案

p> try this ...

try this...

session_name('CAKEPHP');

session_start();

print_r($ _ SESSION);

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

这篇关于从php脚本访问cakephp会话变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆