Strange errors with sessions |
[eluser]Unknown[/eluser]
If this needs to be moved to Bug Reports, I'll be happy to repost. I've googled as much as I can without finding anything, which is why I don't think this is a bug, just sopmething I'm missing for being a n00b. I'm using CI 1.6.3 on Ubuntu with Apache 2 and PHP 5.1.2. I'm getting strange error when I try to use sessions. Here're the errors I'm getting: Quote:A PHP Error was encountered ...and... Quote:A PHP Error was encountered I've checked all my config files, controllers, custom helpers, and view files, and I cannot see anytime where a space comes before the <?php tag. I've tried loading "session" in autoload.php and locally in the controller, but there's no change. Here's what my cookie settings in config.php look like: Code: $config['sess_cookie_name'] = 'ci_session'; ".kinetix" is pretty much like "localhost", hence the lack of a tld. I'm stumped here. Everything see to work except session. Any help would be appreciated. Thank you.
[eluser]Unknown[/eluser]
Setting the following seems to have fixed it: Code: $config['cookie_prefix'] = ""; UPDATE: Never mind that above. This is what helped. It was apparently throwing some error before the headers were getting written, this messing them up. |
Welcome Guest, Not a member yet? Register Sign In |