delete session variable when close browser with out logout

Answers were Sorted based on User's Feedback



delete session variable when close browser with out logout..

Answer / koushikgraj

on unload event in javascript will trigger when the window
is going to close.

we can call a ajax function to clear session

Is This Answer Correct ?    8 Yes 4 No

delete session variable when close browser with out logout..

Answer / ramtej

session should automatically expires when browser window
closes..

Is This Answer Correct ?    2 Yes 3 No

delete session variable when close browser with out logout..

Answer / psharma05

session variable automatically delete when browser closed.

Is This Answer Correct ?    3 Yes 14 No

Post New Answer

More PHP Interview Questions

What is the integer?

0 Answers  


Does php support polymorphism?

0 Answers  


Explain me how failures in execution are handled with include() and require() functions?

0 Answers  


Which PHP function would you use to send an email?

0 Answers  


Explain the changes in php versions?

0 Answers  






Which function can be used to delete a file?

0 Answers  


How to make horizonatl menu and vertical menu responsive

0 Answers  


A process is identified by a unique___

0 Answers  


Does php support function overloading?

0 Answers  


What is the differences between $a != $B and $a !== $B?

0 Answers  


What is session in PHP. How to remove data from a session?

0 Answers  


What is RSS?How to use it in Program?

3 Answers  


Categories