![]() |
Problem with Session PHP 5.5 and 5.6 (localhost) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: Problem with Session PHP 5.5 and 5.6 (localhost) (/showthread.php?tid=65469) |
Problem with Session PHP 5.5 and 5.6 (localhost) - igorvc - 06-15-2016 Hi All, The session aren't working in Debian/Ubuntu with PHP 5.5 and 5.6. I tested using database and files drivers. Every time that the page was loaded a new session is created although reusing. I tested with localhost and IP adresses with the same error. Here are my config: PHP Code: $config['sess_driver'] = 'files'; RE: Problem with Session PHP 5.5 and 5.6 (localhost) - Narf - 06-15-2016 Are you really running your website on teste.icmc/tmp/ ? RE: Problem with Session PHP 5.5 and 5.6 (localhost) - igorvc - 06-15-2016 (06-15-2016, 08:17 AM)Narf Wrote: Are you really running your website on teste.icmc/tmp/ ? No. It's in localhost. Changing the values to '' the problem remains. In this development enviroment I have a CI 2 running without problem. Thanks, RE: Problem with Session PHP 5.5 and 5.6 (localhost) - igorvc - 06-15-2016 I Solve the problem Downgrading the CI to 3.0.3 !!!! I was using 3.0.6 ! When I have time I'll investigate the problem to solve in the new version. RE: Problem with Session PHP 5.5 and 5.6 (localhost) - Narf - 06-15-2016 ... downgrading is not a solution. And neither is putting in made-up values, please read the documentation. RE: Problem with Session PHP 5.5 and 5.6 (localhost) - igorvc - 06-16-2016 Hi Narf, I do not agree in Downgrading. But spend 14 hours to debugging why Session isn't work is too much! I Use and Read a lot the CI Docs, and there are no answer to my problem! So I try another solution! So, when the client was testing the system with 3.0.3 I will upgrading to 3.0.6 and discover where is the BUG! RE: Problem with Session PHP 5.5 and 5.6 (localhost) - Narf - 06-16-2016 (06-16-2016, 03:48 AM)igorvc Wrote: Hi Narf, There is no such bug; this is 100% misconfiguration, hence why I told you to read the docs. The answer IS in there, but you need to understand it and judging by what you've shown so far - you don't. If you did, you wouldn't be setting the cookie_domain to 'teste.inc' for an app running on localhost, nor the cookie_path to '/tmp/' - that's an URL path, not where your sessions are stored. Screaming "BUG" won't help you. Provide more technical information and we may be able to help. |