check_bitrix_sessid
bool check_bitrix_sessid()( $varname='sessid' )
Function parameter
Parameter | Description |
---|---|
varname | Session ID |
Returned value
Returns true, if the condition $_REQUEST[$varname] == bitrix_sessid()
is correct. Otherwise returns false.
Examples of use
if($arResult["Perm"]>=BLOG_PERMS_MODERATE && intval($_GET["delete_comment_id"])>0 && check_bitrix_sessid()) { /*Delete comment*/ }
© «Bitrix24», 2001-2024