Sun Java System Web Server 6.1 SP6 Programmer's Guide to Web Applications

Invalidating a Session Manually

To invalidate a session manually, simply call the following method:

session.invalidate();

All objects bound to the session are removed.