Welcome Guest, Not a member yet? Register   Sign In
session in 3.0.3 not saving userdata
#3

I've solved this problem. Problem was that my cookie was overriding database session. In config file if using database for session, this line cannot have value:

$config['sess_cookie_name'] = 'mydomain';

In order for session to work using database, that value has to be empty:

$config['sess_cookie_name'] = '';

If it is not empty, CI will default to cookies for your session. This does not mean you cannot use cookies. You just have to loaded them via helper and they will work just fine.
Reply


Messages In This Thread
session in 3.0.3 not saving userdata - by zuboje - 11-27-2015, 03:57 PM
RE: session in 3.0.3 not saving userdata - by zuboje - 11-27-2015, 11:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB