What are the ways we can destroy a session variable ?
Answers were Sorted based on User's Feedback
Answer / nilsoft
There are three ways
1. session_destroy()
2. session_unset()
3. session_unregister()
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / jeevi
it will destroy all the variables.
session.invalidate();
if you want to destroy individual variables, use this command.
session.removeAttribute("sessionvariablename");
| Is This Answer Correct ? | 3 Yes | 14 No |
What is the meaning of "enctype= multipart/form-data" ?
How to join multiple strings into a single string?
How long is session timeout?
Hi, My Name is Ajay Jha. What My Question is I am Percuing in Bca. It's My 5th Semester. I Want To Make My Carrear as a web designer that's Why i wants to do Php, Is it right Desision for Me ?
How can we get the browser properties using PHP?
4 Answers Google, Pollux Softech,
How many types of inheritances used in php and how we achieve it.
Tools used for drawing er diagrams?
Can we run php in apache tomcat?
What version of php do I have windows?
Should I learn php before wordpress?
What is php data type?
What is the difference between include and include_once ? Which is one is good in terms of performance ?