Session Expiry Validation

session must be invalidated from the server end if the browser gets closed.
how we can implement this?

I’m also looking for the same.