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 mode to use when creating dirs with mkdir?
equivalent code for the following c program in php void main() { int i=5;printf("%d",i); }
Who is the father of PHP and explain the changes in PHP versions?
13 Answers Befree, iMark Group, Netizen,
How can we know the number of days between two given dates using PHP?
8 Answers AZTEC, HCL, Navsoft,
Hello I m 1.5 exp, i want code : ms word to Html in php,retrieve the words in ms word in to dispaly browser in (same format,alignment). pls help me everybody Regards selva
Suppose the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?
What is difference between explode() or split() in PHP?
If anybody integrate "First Data Global Payment Gateway" in your site?
is php is the best for this situation
how can I use bread crumb in PHP ?
Can I use php in html?
What is difference between mysql_connect and mysqli_connect?