Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
\Security::check_token() give me alwasy false
  • Hi there,

    I can not get true from \Security::check_token().

    To reproduce this, I have following code.

    php oil console

    I also have followings in cofig.php as well.

      'security' => array(
         'csrf_autoload'            => false,
        // 'csrf_autoload_methods'    => array('post', 'put', 'delete'),
        // 'csrf_bad_request_on_fail' => false,
        // 'csrf_auto_token'          => false,
         'csrf_token_key'           => 'fuel_csrf_token',
         'csrf_expiration'          => 86400, // 1day                                                                                                                                             

         * A salt to make sure the generated security tokens are not predictable
        'token_salt'            => 'mySalt',

    FuelPHP version is 1.9-dev

    Do you have any suggestion for this?
  • HarroHarro
    Accepted Answer
    Security tokens use a cookie. You don't have cookies on the commandline.
  • Thats right.
    Thanks for your help :)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion