Session.clear

Clears the session data from both memory and disk. The session id is not changed by this function. To change it, use invalidate() if you want to clear data and change the ID or regenerateId() if you want to change the session ID, but not change the data.

Odds are, invalidate() is what you really want.

class Session
void
clear
()

Meta