onUnload event -> session_destroy() |
[eluser]Fribos[/eluser]
Hi! I need to execute a function for session destroy when the user leaves, using onunload javascript event. I'm codding something like this: On my controller Code: function destruir_sesion(){ On my <head> view Code: function destruir_sesion(){ On my view body div Code: onunload="destruir_sesion()" I cant understand AJAX sintax, so if u can help me i'll thank you. Where can i find a good ajax tutorial for begginers ? Thanks
[eluser]vitoco[/eluser]
this tutorial it's very simple, also cover javascript fundamentals http://jqfundamentals.com/book/book.html Saludos |
Welcome Guest, Not a member yet? Register Sign In |