Invalidate session on tab or window close (not tested!!)