removed unecessary code from sesion management code (zain fix)