delete session variable when close browser with out logout
Answer Posted / 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 |
Post New Answer View All Answers
Which will check if a function exists?
Do you know what is the difference between the include() and require() functions?
What is an anti csrf token?
Do you know what does $globals means?
How to check curl is enabled or not in PHP
What is php built on?
Write a program to swap two numbers using php.
What is the use of die in php?
How to get ip address of clients machine?
Give the case where we can use get and we can use post methods?
Explain how can we increase the execution time of a php script?
How big is varchar max?
Does php have block scope?
How can you tell if a number is even or odd without using any condition or loop?
How to set a value in session? How to remove data from a session?