What does this snippet work? It uses session cookie [closed]
- by Emerald214
My website is a gadget application. It uses CakePHP framework. It has the below snippet in AppController. I searched the cookie variable in the project but can't find any other occurences. I also don't understand what it works. Why does it always check this in every request.
if ( isset( $_COOKIE[session_name()] ) ) {
if ( !isset( $this->sns_id ) ) {
// ?????????
$this->cakeError( 'session' );
}
}
else {
// ??????????????????
if ( !isset( $_REQUEST['post_pf_params'] ) ) {
$this->cakeError( 'cookie' );
}
}