Hi
You can give "session.abandon()".you can give in the onclick event of the LOGOUT button from the Server side page also.

I think it would help for you.

Thanks !
Thiyagarajan.N