Home  >  Article  >  Backend Development  >  做淘宝网站时的登录退出代码不理解

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

WBOY
WBOYOriginal
2016-06-06 20:15:45929browse

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

回复内容:

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

如果有操作(op)且操作是logout,就清空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