Created
August 23, 2013 02:05
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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