Home > Article > Backend Development > Share a problem of not being able to get cookies under the ci framework_PHP tutorial
Since online banking payment is used in the project, in 360 Speed Browser and other dual-core browsers, when jumping to payment, they will force the browser mode to be changed to compatibility mode, so that in Cookies in speed mode cannot be retrieved in compatibility mode because the user_agent changes when the browser switches modes. I have tried forcing it to use a certain mode in 360 Browser, but it behaves differently in different versions and cannot be solved perfectly. Problem, I finally found that the session in ci made a judgment about this option. The 192th line in the session class. The final solution is to modify $config['sess_match_useragent']= FALSE in config.php; changing it to false can solve this problem. !