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 difference between variable declaration and variable definition?
What is session_register()?
Explain the ternary conditional operator in php?
How to join multiple strings stored in an array into a single string?
What is difference between include,require,include_once and require_once()?
Explain about error handling in php?
1 Answers INDUS, Life Infotech, Yahoo,
How do you destroy a particular or all Sessions?
What is The difference between ' and " where they can ben in between or outmost and how
What is the use of paypal in the e-commerece website?
how can attached a file to a mail and attached a resume to a mail and received in id
what is the maximum size of databasi in mysql?
How does php and apache work?