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

Explain what are the three classes of errors that can occur in php?

0 Answers  


Explain the ternary conditional operator in php?

0 Answers  


when you will get the message/error "headers already sent"?

5 Answers  


Tell us how can we display the output directly to the browser?

0 Answers  


Why is php used?

0 Answers  






Explain Parsing and Execution in PHP? Where PHP Engine Return errors?

3 Answers   CMC,


What is MVC structure in Magento?

4 Answers  


What is the difference between print() and echo() in PHP?

0 Answers  


What are the differences between Get and post methods in form submitting, give the case where we can use get and we can use post methods?

11 Answers   HCL, Rushmore Consultancy, Thursday Technology,


What is Apache's configuration file typically called?

0 Answers  


Explain about Functions in PHP?

1 Answers  


What is the major php security hole? How to avoid?

0 Answers  


Categories