src/CsrfProtection.php
public function validateCookie(WebRequest $request)
    {
        if ($request->cookie(self::TOKEN_COOKIE_NAME) != $request->post(self::TOKEN_COOKIE_NAME)) {
            throw new CsrfViolationException();
        }
    }
public function validateCookie(WebRequest $request)
    {
        if ($request->cookie(self::TOKEN_COOKIE_NAME) != $request->post(self::TOKEN_COOKIE_NAME)) {
            throw new CsrfViolationException();
        }
    }
public function validateCookie ( WebRequest $ request ) { if ( $ request -> cookie ( self :: TOKEN_COOKIE_NAME ) != $ request -> post ( self :: TOKEN_COOKIE_NAME ) ) { throw new CsrfViolationException ( ) ; } }
Validates if the csrf_tk cookie matches the posted value.
Validates if the csrf_tk cookie matches the posted value .