开发者

Why cant I access $_SESSION[USERID]?

开发者 https://www.devze.com 2023-03-04 15:11 出处:网络
When i embed an html page in an iframe on a .tpl file, can I access smarty session variables such as $_SESSION[USERID]? I am trying to figure out why I cant get a userID because I am doing it the same

When i embed an html page in an iframe on a .tpl file, can I access smarty session variables such as $_SESSION[USERID]? I am trying to figure out why I cant get a userID because I am doing it the same way I have done it before. Are there any restrictions of javascript or json enco开发者_如何学编程ding on $_SESSION[USERID]?


use session_start() at the top of the page where u want to retrieve the $_SESSION variable

i think in smarty you can get the session data like this

$smarty.session.USERID
0

精彩评论

暂无评论...
验证码 换一张
取 消