session.invalidate The invalidate function invalidates the session ID for the current request, effectively destroying the session. Sample session.invalidate(); API Calling Returning session. invalidate ( ) void