Welcome Guest, Not a member yet? Register   Sign In
csrf_protection in codeigniter 2.0.2
#7

[eluser]zoreli[/eluser]
HI

After long testing...I am getting error from time to time in all browsers.

That is happening when I clear the cache and history. Then I get error in any browser.

My settings in the config are the following:

$config['csrf_protection'] = TRUE;

$config['csrf_token_name'] = 'one';
$config['csrf_cookie_name'] = 'two';
$config['csrf_expire'] = 7200;

I place the following code in the controller


$data = array(

'csrf_hash' => $this->security->get_csrf_hash(),
'csrf_name' => $this->security->get_csrf_token_name()
);



printing those both variables, return the folowing:

ci_csrf_token
b8c3ab208e59e08228f3b93ad3f38ffa

Any help will be deeply appreciated.

Regards,Zoreli


Messages In This Thread
csrf_protection in codeigniter 2.0.2 - by El Forum - 07-11-2012, 04:16 AM
csrf_protection in codeigniter 2.0.2 - by El Forum - 07-11-2012, 07:21 AM
csrf_protection in codeigniter 2.0.2 - by El Forum - 07-11-2012, 06:12 PM
csrf_protection in codeigniter 2.0.2 - by El Forum - 07-11-2012, 06:16 PM
csrf_protection in codeigniter 2.0.2 - by El Forum - 07-11-2012, 06:23 PM
csrf_protection in codeigniter 2.0.2 - by El Forum - 07-11-2012, 06:34 PM
csrf_protection in codeigniter 2.0.2 - by El Forum - 07-11-2012, 08:01 PM
csrf_protection in codeigniter 2.0.2 - by El Forum - 07-12-2012, 02:07 PM
csrf_protection in codeigniter 2.0.2 - by El Forum - 07-12-2012, 02:27 PM
csrf_protection in codeigniter 2.0.2 - by El Forum - 07-13-2012, 12:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB