What are the ways we can destroy a session variable ?

Answers were Sorted based on User's Feedback



What are the ways we can destroy a session variable ?..

Answer / prasad

session_destroy. and session_unset

Is This Answer Correct ?    30 Yes 1 No

What are the ways we can destroy a session variable ?..

Answer / nilsoft

There are three ways

1. session_destroy()
2. session_unset()
3. session_unregister()

Is This Answer Correct ?    4 Yes 1 No

What are the ways we can destroy a session variable ?..

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

Post New Answer

More PHP Interview Questions

what mode to use when creating dirs with mkdir?

1 Answers  


equivalent code for the following c program in php void main() { int i=5;printf("%d",i); }

2 Answers  


Who is the father of PHP and explain the changes in PHP versions?

13 Answers   Befree, iMark Group, Netizen,


How can we know the number of days between two given dates using PHP?

8 Answers   AZTEC, HCL, Navsoft,


Hello I m 1.5 exp, i want code : ms word to Html in php,retrieve the words in ms word in to dispaly browser in (same format,alignment). pls help me everybody Regards selva

0 Answers  






Suppose the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?

0 Answers  


What is difference between explode() or split() in PHP?

0 Answers  


If anybody integrate "First Data Global Payment Gateway" in your site?

2 Answers  


is php is the best for this situation

2 Answers  


how can I use bread crumb in PHP ?

2 Answers  


Can I use php in html?

0 Answers  


What is difference between mysql_connect and mysqli_connect?

0 Answers  


Categories