php会话仍然有问题 [英] still having problem with php sessions

查看:79
本文介绍了php会话仍然有问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我在登录/登出管理上遇到了一些麻烦.

问题是,当用户单击后退"按钮并返回登录页面时,会话va用户名仍保留该值.

我需要的是完全理解在用户离开其登录页面的所有情况下如何取消会话变量?

请指导一下,这里发送给我的所有php会话教程都没有帮助.

moses

hi all

i''m having some troubles with my login/logout management.

the problem is, when user clicks back button and gets back to the login page, the session va username still holds the value .

what i need, is to completly understand how can i unset the session var in all the occasions user leaves the page he signed in for??

plesae some guidness, all the php session tutorials sent to me here, are not that helpfull.

moses

推荐答案



使用类似
的代码
Hi,

Use some code like
<?php if(!isset(


_SESSION [活动'])){ 标头(" ); }
_SESSION['live'])){ header("location:fail.php"); }



它会帮助你

谢谢

Anand



it will help you

Thanks

Anand


这篇关于php会话仍然有问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆