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


Please Help Members By Posting Answers For Below Questions

What is difference between echo and print in php?

501


What is $globals php?

540


Explain the syntax for ‘foreach’ loop with example.

501


Explain the changes in php versions?

540


Is php used in 2019?

540






What are the uses of php language?

540


How does php strcmp work?

509


What is session and why do we use it?

556


What is php stack?

529


Php program to generate fibonacci series?

552


What is global array in php?

575


How to list all values of submitted fields?

554


What are the special characters you need to escape in double-quoted stings?

544


Is php deprecated?

537


How to remove html tags from data in php?

628