What are the ways we can destroy a session variable ?
Answer Posted / 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 |
Post New Answer View All Answers
Which is the correct way to check if a session has already been started ?
What percentage of websites use php?
What are the types of variables in php?
How check field is empty or not in php?
Steps for the payment gateway processing?
What are the benefits of using php?
What is difference between static and final in php?
What is the difference between require and include in php?
What is php beginner?
Define anonymous classes in php7?
Which function is used to strip whitespace?
What is the purpose of php?
What is var_dump function in php?
How to send a cookie to the browser?
What is polymorphism in php?