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 are the reasons for selecting lamp (linux, apache, mysql, PHP) instead of combination of other software programmes, servers and operating systems?
Does php has a future?
how to use particular city location in php?
What are the differences between procedure-oriented languages and object-oriented languages?
Is php free to use?
What is user defined function in php?
What is the difference between explode and split?
What is the delimiter default in PHP?
When you want to show some part of a text displayed on an html page in red font color? What different possibilities are there to do this? What are the advantages/disadvantages of these methods?
Write a php function to convert all null values to blank?
What is the difference between array_pop() and array_push()?
What is the use of print_r function in php?