Welcome Guest, Not a member yet? Register   Sign In
Problem with updating session data
#1

Hello

I have a strange problem with sessions and after a couple of hours searching how I can fix it I've finally gave up ;/

I created my own authantication library. I'm using database session driver and I've added one column to original table named 'user_id'.  I'm trying to update session table with query :

[3] => UPDATE `ci_sessions_2` SET `user_id` = '1' WHERE `id` = 'blabla_sessioncode'

It works when user is logging in but not when session expires and user is back (and had 'remember me' checked).

$this->db->queries print this query every time, there no database errors and when I copy query and manually paste to phpmyadmin it works.

Thanks for any help.
Reply


Messages In This Thread
Problem with updating session data - by boddah85 - 06-14-2016, 05:54 AM
RE: Problem with updating session data - by PaulD - 06-14-2016, 03:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB