Home > Backend Development > PHP Tutorial > 判断用户是否登录,该如何处理

判断用户是否登录,该如何处理

WBOY
Release: 2016-06-13 10:06:50
Original
856 people have browsed it

判断用户是否登录
用户中心"; }else{ echo "判断用户是否登录,该如何处理 判断用户是否登录,该如何处理";}?>

这段代码,session_start();没有起到作用, 我这是写到了头文件里面了,我郁闷的是session在后台代码页面都是可以用的,为什么在前台页面代码里面就不可以用了。。

------解决方案--------------------
前面是否有输出了?文件的格式 是不是有BOM头

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template