set_userdata doesn't realy set userdata |
Hi,
I'm using a modified version of the very basic user authentication library (https://github.com/joelvardy/Basic-CodeI...entication) for the authentication in my application. It was working well until I did an upgrade to CI3 RC2, after that upgrade the userdata isn't set. PHP Code: $user_details = $user->row(); I use the database driver with the following configuration PHP Code: $config['sess_driver'] = 'database'; Does someone know what I am doing wrom?
Your sessions table may need to be modified since the table schema for sessions changed in CI 3: http://www.codeigniter.com/userguide3/li...ase-driver
MySql example: Code: CREATE TABLE IF NOT EXISTS `ci_sessions` ( Note that the `data` field is now a blob data type.
My session table is exactly the same as the mysql example you gave. (I did that upgrade already).
What does that description really mean? It's not saving to the database or ... ?
And how did you verify that? Did you look at the logs?
I found what was wrong, I was trying to make a connection with the Joomla! CMS authentication, the Joomla! framework breaks the CodeIgniter session handler. When I comment the joomla imports it is working well.
|
Welcome Guest, Not a member yet? Register Sign In |