Skip to content

Instantly share code, notes, and snippets.

@pabloprogramador
Created August 23, 2013 02:05
Show Gist options
  • Select an option

  • Save pabloprogramador/6314833 to your computer and use it in GitHub Desktop.

Select an option

Save pabloprogramador/6314833 to your computer and use it in GitHub Desktop.
bug servidor login volta para o login, login back login erro de segurança do cookie csrf
problema no name server
solution
<?php
// for multi-site logins to work properly we have to set a prefix. We use the subdomain for that or default_ if none exists.
//$config['cookie_prefix'] = (substr_count($_SERVER['SERVER_NAME'], '.') > 1) ? substr($_SERVER['SERVER_NAME'], 0, strpos($_SERVER['SERVER_NAME'], '.')) . '_' : 'default_';
//$config['cookie_domain'] = ($_SERVER['SERVER_NAME'] == 'localhost') ? '' : $_SERVER['SERVER_NAME'];
//$config['cookie_path'] = BASE_URI;
//$config['cookie_secure'] = false;
$config['cookie_prefix'] = 'default_';
$config['cookie_domain'] = '';
$config['cookie_path'] = BASE_URI;
$config['cookie_secure'] = false;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment