I have a CodeIgniter website running in a subdomain.
The session values don't pass between one page and the other. For example, if I put $_SESSION['ouch'] = "Bla" on one controller method that handles a page, the value is gone when the page redirects to another page. That behavior makes login in impossible.
These are my CodeIgniter config settings when it comes to cookies and sessions. I have tried variations, but the session values disappear as soon as the login page redirects.
$config['cookie_prefix'] = '';
$config['cookie_domain'] = '';
$config['cookie_path'] = '/';
$config['cookie_secure'] = false;
$config['cookie_httponly'] = false;