Home > Backend Development > PHP Tutorial > 一个很奇怪的session有关问题。

一个很奇怪的session有关问题。

WBOY
Release: 2016-06-13 10:15:39
Original
956 people have browsed it

一个很奇怪的session问题。。

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->//session_start();$op = @$_GET['op'];if($op=='1'){    for ($i=0; $i
Copy after login


------解决方案--------------------
你的 两个浏览器 是如何打开的?
如果是两个选项卡或者是通过菜单新建窗口产生的,都会有你说的现象

你可以在程序中加入
echo session_id();

来观察和判断 session_start() 会锁的现象
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