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

How to repeat a string to a specific number of times in php?

0 Answers  


What type of inheritance that PHP supports?

15 Answers   Webwing Technologies,


What is pdo in php why use?

0 Answers  


How does php and apache work?

0 Answers  


Any good PHP developer looking for change

1 Answers  






How can we encrypt the username and password using PHP?

13 Answers   Avaria, HCL, TCS, Xpert,


What is session php?

0 Answers  


What does the unlink() function mean?

0 Answers  


Tell me in php, objects are they passed by value or by reference?

0 Answers  


Tell me what is needed to be able to use image function?

0 Answers  


What is the use of mysqli_real_escape_string() function?

0 Answers  


Write a program to get second highest number in an array using php?

0 Answers  


Categories