Welcome Guest, Not a member yet? Register   Sign In
when csrf is true only works in firefox and not in other browser
#5

[eluser]Javier Fonseca[/eluser]
Hey take it easy! I was joking about "painful" :-) , anyway the help is required.

Quote:Sidenote: using CI should get quite “easy” to use as soon as
you get a bit more familiar how it works.

I agree!.

Quote:There are some tricks to working with sessions. check this old post http://ellislab.com/forums/viewthread/157468/ maybe that will help

Hi Jeroen Schaftenaar, I tryed it but it still yield the error.

Here is my config code:

[code]<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
*/
$config['base_url'] = 'http://www.suemp.com/goen/';

/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
*/
$config['index_page'] = '';

/*
|--------------------------------------------------------------------------
| URI PROTOCOL
|--------------------------------------------------------------------------
*/
$config['uri_protocol'] = 'REQUEST_URI';



/*
|--------------------------------------------------------------------------
| Session Variables
|--------------------------------------------------------------------------
*/
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_expire_on_close'] = FALSE;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_use_database'] = TRUE;
$config['sess_table_name'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;

/*
|--------------------------------------------------------------------------
| Cookie Related Variables
|------------------------------------------
$config['cookie_prefix'] = "";
$config['cookie_domain'] = "";
$config['cookie_path'] = "/";
$config['cookie_secure'] = FALSE;

/*
|--------------------------------------------------------------------------
| Global XSS Filtering
|--------------------------------------------------------------------------

*/
$config['global_xss_filtering'] = TRUE;

/*
|--------------------------------------------------------------------------
| Cross Site Request Forgery
|--------------------------------------------------------------------------

*/
$config['csrf_protection'] = TRUE;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;


Messages In This Thread
when csrf is true only works in firefox and not in other browser - by El Forum - 06-07-2011, 10:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB