Update session.class.php

Correct duplicate code