CUser::Logout()
The method ends the user authorized session and erases user cookie used for automatic authorization. Non-static method.
<? $USER->Logout(); ?>