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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:37:18
Original
1604 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:
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
Latest Issues
Session
From 1970-01-01 08:00:00
0
0
0
session
From 1970-01-01 08:00:00
0
0
0
session login information
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template