[1.5.x] Fixed #20525 -- Added versionadded for clearsessions.

Thanks wiml@.

Backport of 8a6e040bfa from master