Welcome Guest, Not a member yet? Register   Sign In
csrf_protection bug. Cant make it work
#7

[eluser]rei[/eluser]
Sorry sir. Nwei back to the topic.. the csrf_token is present when I view the source:
Code:
<input type="hidden" name="csrf_test_name" value="a95b55ae4a2a751bbf13bce3769e0ff4" />
</div>

I'm using form_open() function so the csrf token is inserted automatically in my forms.

here is the config.php file:
Code:
$config['csrf_protection'] = TRUE;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;

But when I submit the form it shows me this error message:
An Error Was Encountered
The action you have requested is not allowed.

I’m having this error message for all browsers except FireFox ONLY IN MY LAPTOP if the site is online in a web host but when I'm in localhost there is no problem. When I test it on other laptops there is no problem even if the site is online in a web host. I also tested it on mobile and ipad and there is no problem. I'm wondering why I'm only having this problem in my laptop. I tried clearing the cache and even reformat my laptop but the problem still exists.

PS: I'm also having a session problem being lost after redirect only in my laptop but it also works fine when using firefox browser or when I'm in localhost.

Nwei Im using Windows 7 64 bit.

I tried it using linux mint OS in my laptop and I don't encounter any problem..




Messages In This Thread
csrf_protection bug. Cant make it work - by El Forum - 07-27-2012, 08:57 AM
csrf_protection bug. Cant make it work - by El Forum - 07-29-2012, 12:33 PM
csrf_protection bug. Cant make it work - by El Forum - 07-29-2012, 04:09 PM
csrf_protection bug. Cant make it work - by El Forum - 07-30-2012, 01:03 AM
csrf_protection bug. Cant make it work - by El Forum - 07-30-2012, 06:10 AM
csrf_protection bug. Cant make it work - by El Forum - 07-30-2012, 10:15 AM
csrf_protection bug. Cant make it work - by El Forum - 07-30-2012, 03:44 PM
csrf_protection bug. Cant make it work - by El Forum - 07-30-2012, 03:47 PM
csrf_protection bug. Cant make it work - by El Forum - 07-30-2012, 03:52 PM
csrf_protection bug. Cant make it work - by El Forum - 07-30-2012, 03:55 PM
csrf_protection bug. Cant make it work - by El Forum - 07-30-2012, 03:57 PM
csrf_protection bug. Cant make it work - by El Forum - 07-30-2012, 03:57 PM
csrf_protection bug. Cant make it work - by El Forum - 07-30-2012, 04:00 PM
csrf_protection bug. Cant make it work - by El Forum - 07-30-2012, 04:01 PM
csrf_protection bug. Cant make it work - by El Forum - 07-30-2012, 04:22 PM
csrf_protection bug. Cant make it work - by El Forum - 08-10-2012, 06:29 AM
csrf_protection bug. Cant make it work - by El Forum - 08-10-2012, 08:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB