当在php中卸载页面时如何清除php中的所有会话 [英] how to clear all session in php when a page unload in php
本文介绍了当在php中卸载页面时如何清除php中的所有会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在页面卸载时清除php
中的所有会话,以便之后可以隐藏并显示一些html
元素.
请帮助我
I want to clear all session in php
when a page unload so that after that I can hide and show some html
element.
please help me
thanks in advance.
推荐答案
这取决于条件,即如何保持会话?您正在使用内置于会话管理或自定义会话管理的PHP.
看看有 [
Its depend upon the condition which is that how you are going to keeping the session? either you are using PHP''s built in session management or a custom session management.
Have a look there[^] for nice solution which gives you idea how to clear based on condition.
这篇关于当在php中卸载页面时如何清除php中的所有会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文