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 |
Why ide is recommended for use while programming with php?
i got this error msg in online... how to solve this problem... i couldnot find out as soon as possible send me answer or idea COULD NOT ABLE TO CONNECT DATABASE . Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2)
Explain the ternary conditional operator in php?
Is PHP is procedure oriented or object oriented?
Do you know what's the difference between __sleep and __wakeup?
What is the substitution of submit in PHP?
What is exception in php?
Explain some most commonly use string functions in php?
What are the two types of variables?
What is __ construct in php?
How to convert numbers to strings in php?
i am a php programmer can i be a java programmer?