Session expire

Hello

I want the code to expire the session when i close the browser.

is it possible to call an action from a controller from java script?

If not then wat code can be written to expire session when the user
closes the browser window.

Pls reply

thanks

dhaval