Bitrix Site Manager

CUser::SavePasswordHash

CUser::SavePasswordHash()

The method SavePasswordHash stores the special hash string in the user cookie for future automatic authorization. Different sites built on the Bitrix Site Manager always store unique hash value for the same password. This allows to avoid password hash collisions for different sites.

Parameters

No parameters.

See Also

Example



<?
global $USER;
if ($USER->IsAuthorized()) $USER->SavePasswordHash();
?>