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

[eluser]Javier Fonseca[/eluser]
I already set my configuration like this:
Code:
$config['sess_cookie_name']        = 'cisession';
$config['sess_expiration']        = 7200;
$config['sess_expire_on_close']    = FALSE;
$config['sess_encrypt_cookie']    = TRUE;
$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
|--------------------------------------------------------------------------
|
| 'cookie_prefix' = Set a prefix if you need to avoid collisions
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
| 'cookie_path'   =  Typically will be a forward slash
| 'cookie_secure' =  Cookies will only be set if a secure HTTPS connection exists.
|
*/
$config['cookie_prefix']    = "";
$config['cookie_domain']    = ($_SERVER['SERVER_NAME'] == 'localhost' ? '' : preg_replace('/^www\./', '',
$_SERVER['SERVER_NAME']));
$config['cookie_path']        = "/";
$config['cookie_secure']    = FALSE;

The cookie ecnryption is TRUE and the encryption key is set too but still getting error.
Take a look to my .htaccess code, I dont know if this could help

Code:
Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|img|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]


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



Theme © iAndrew 2016 - Forum software by © MyBB