做淘宝网站时的登录退出代码不理解

WBOY
Release: 2016-06-06 20:15:45
Original
928 people have browsed it

if($_GET["op"]&&$_GET["op"]=="logout"){unset($_SESSION["user"]);}
不理解if里面的条件语句

回复内容:

if($_GET["op"]&&$_GET["op"]=="logout"){unset($_SESSION["user"]);}
不理解if里面的条件语句

如果有操作(op)且操作是logout,就清空session

希望有所帮助~ :)

Related labels:
php
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!