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

Which functions are used to remove whitespaces from the string?

0 Answers  


What does the scope of variables means?

0 Answers  


How to convert strings to numbers in php?

0 Answers  


How to execute a function in php?

0 Answers  


How to get no. of rows using MYSQL function?

0 Answers  






Tell me what does the php error 'parse error in php - unexpected t_variable at line x' means?

0 Answers  


Explain the casts allowed in PHP?

0 Answers  


Does strlen include null?

0 Answers  


What is class extend in php?

0 Answers  


How to list all values of submitted fields?

0 Answers  


Explain $_FILES Superglobal Array?

0 Answers  


Does browser understand php?

0 Answers  


Categories