delete session variable when close browser with out logout
Answers were Sorted based on User's Feedback
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 |
Answer / ramtej
session should automatically expires when browser window
closes..
| Is This Answer Correct ? | 2 Yes | 3 No |
Answer / psharma05
session variable automatically delete when browser closed.
| Is This Answer Correct ? | 3 Yes | 14 No |
What is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?
What is a php array?
What is design pattern? Explain all including singleton pattern?
is anybody upload more than 100mb file using PHP upload script in ONLINE SERVER (using .htaccess file)? please give some idea...
What is meant by an associative array?
What is htmlentities function in php?
What are the functions to be used to get the image's properties (size, width and height)?
Explain me how failures in execution are handled with include() and require() functions?
Is facebook still in php?
How long does a php session last for?
Explain what are psrs?
What is default session time and path in php?