Can I call a php function built-in or own-created, from a javascript function ?
I mean, I want to delete a cookie(setcookie - php function) when unloading a window. On closing the window, javascript unload event is triggered in which i want to delete the cookie.
If there any alternative method to delete a cookie on closing the browser window, please let me know.
The javascript document.cookie with the same name of the php given cookie has NO effect on cookies.
Basically, my main problem is that Cookie exists even if my browser window is closed. I don't want to keep it active, for security reasons.
Any idea how to do it ? i think a combination of Javascript with PHP should work, but how ?
Thanks.
Bijal Kothari.