[Solved] Codeigniter sessions Question |
Hi, on my live domain for some reason my codeigniter session creates one for www.example.co.nz and one for example.co.nz
Why is that it should only create one lot of sessions. Not sure what cause this issue because of the two sessions I can not echo my sessions. PHP Code: $config['sess_driver'] = 'files'; PHP Code: $config['cookie_prefix'] = '';
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
I think I found the solution need to put cookie domain
PHP Code: $config['cookie_prefix'] = ''; Seems to work now
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Welcome Guest, Not a member yet? Register Sign In |