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
Explain me what are the 3 scope levels available in php and how would you define them?
What is parent __construct ();?
What is php default argument?
What sized websites have you worked on in the past?
iam mca post graduate in 2010 not getting job in JAVA so iam looking for carear in php as market demand is high so it is best option to try for php or not
Do you know how to enable error reporting in php?
Is php strongly typed?
What are computer variables?
"mysql_fetch_row — Get a result row as an enumerated array",this sentence comes from the PHP offical manual.However ,i can not understand the words "enumerated array".I need some help.Thanks a lot to everyone that reply.
How to process the uploaded files?
What is call by reference in php?
What are variables in research examples?
What is the difference between characters 23 and x23?
What are the advantages of stored procedures in php?
What is delimiter php?