PHP判断用户session是否存在有关问题,放在<html>之前不起作用

WBOY
Release: 2016-06-13 12:37:18
Original
1547 people have browsed it

PHP判断用户session是否存在问题,放在之前不起作用

]<?php<br />
require_once ('config.php');<br />
<br />
//判断用户权限<br />
	if($_SESSION['member'] != "admin"){<br />
	echo "<script>alert('请进行登陆');location='index.php';</script>";<br />
	}<br />
?>
Copy after login


放在之前不起作用,放在

之内,火狐做了判断,但是ie依然不起作用
PHP?session?火狐 PHP session
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!