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 |
How can I add text to an image?
1 Answers IPSR Solutions, Rushmore Consultancy,
what are the differences between php and perl
How to get the directory name out of a file path name?
Tell me how to find current date and time?
What is Apache's configuration file typically called?
What kind of things have you done on the social side?
What are the features of php?
Explain me how to include a file to a php page?
Draw the architecture of Zend engine?
Why php is better?
What is the actually used php version?
What is design pattern? Explain all including singleton pattern?