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
Tell me what is the use of mysql_real_escape_string() function?
What is strcmp?
What is csrf token and why it is required?
Are objects passed by value or by reference?
What is traits? How it is used in php?
What is the default session out time?
What is the function of string in c?
How many types of session are there?
Tell me what is the difference between ereg_replace() and eregi_replace()?
How to get the ip address of the client?
What type of headers that PHP supports?
Will a comparison of an integer 12 and a string "13" work in php?
How to pad an array with the same value multiple times?
Why do we use hooks?
How can I convert ereg expressions to preg in php?