session方法怎么用
thinkphp吧
全部回复
仅看楼主
level 3
926_9
楼主
如题:
小弟作业用xamp的thinkPHP制作作业,想在用户登陆之后能够在页面显示刚登陆的用户名,该如何在html网页中实现呢。
2015年12月18日 15点12分
1
level 2
cnxxxxcncn
if(session('user')){
}else{
如果没登录 就处理这个
}
2015年12月19日 08点12分
3
926_9
这个是写在action文件中吗
2015年12月19日 08点12分
level 3
926_9
楼主
这是网页代码
2015年12月19日 08点12分
4
level 3
926_9
楼主
action中的代码
2015年12月19日 08点12分
5
level 10
唯恋_海_
thinkphp 默认开启SESSION的
2015年12月21日 07点12分
7
level 6
我对海鲜过敏啊
直接 赋值
2015年12月26日 19点12分
8
level 6
zuiniul
2016年02月29日 07点02分
10
1