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

[eluser]InsiteFX[/eluser]
Couple of things you can try.

Code:
// add this to your controller:

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

// And change the hidden form field in your view to this:

<input type="hidden" name="<?php echo $csrf_name; ?>" value="<?php echo $csrf_hash; ?>" />

Well check your IE cookie settings, IE has default cookie restrictions like not allowing session cookies.

1) IE menu click on Tools button then Internet options.
2) Click on the Privacy tab then click on the Advanced button.
3) Check the Override automatic cookie handling.
4) First-party Cookies Accept.
5) Third-party Cookies Accept.
6) Check the Always allow session cookies.

NOTES:

Beware of underscores in the hostname, because IE won't save cookies.


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