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

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

WBOY
WBOYOriginal
2016-06-13 12:37:181548browse

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 />
?>


放在之前不起作用,放在

之内,火狐做了判断,但是ie依然不起作用
PHP?session?火狐 PHP session
Statement:
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