Blogger Information
Blog 9
fans 0
comment 2
visits 14082
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
tp5在前台输出session
sky的博客
Original
4692 people have browsed it

比如在后台这么写,Session::set('adminname',$one['username'],'admin'),就带上了admin的作用域,那怎么在前台输出呢?

如果没有作用域就是{$Request.session.session名}或者{$Think.session.session名}这样,

有了作用域,就得这样写{$Request.session..session作用域.session名},就是在前面加上作用域的名称



Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post