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 inheritance in php progaming?

1 Answers  


How check field is empty or not in php?

0 Answers  


How to define a function with any number of arguments?

0 Answers  


What is echo in html?

0 Answers  


Which function you can use in php to open a file for reading or writing or for both?

0 Answers  


Write a query to find the 2nd highest salary of an employee from the employee table?

0 Answers  


"$this" what type of object it is?

2 Answers  


•How do you create subdomains using PHP?

1 Answers  


How come the code works, but doesn’t for two-dimensional array of mine?

0 Answers  


Can I learn php in a month?

0 Answers  


With a heredoc syntax, do I get variable substitution inside the heredoc contents?

0 Answers  


What is the difference between characters 23 and x23?

0 Answers  


Categories