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

Thanks for the response.

I'm expecting that when user which had checked "remember me" come back to me, the session will be generated and user_id column will be updated. This works good when user send a form with correct login and password.

Quote:Why are you storing the user ID in the session as well as in a separate column in the session table? What is the purpose of modifying the session table in the first place?

Maybe it's wrong but I don't know how to do it in other way. I've added a new column cause in some cases I need to delete specific user's session (for example this user has been banned and I want to log out him immediately) and it's quite simple to do it with new column (user_id). I would appreciate any tip if there's another way to do it better.

Cheers
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 boddah85 - 06-14-2016, 10:01 AM
RE: Problem with updating session data - by PaulD - 06-14-2016, 03:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB