CodeIgniter Project Tutorial 11 - Storing Sessions in the Database

سافت افزار
سافت افزار
130 بار بازدید - 7 سال پیش - I show you how to
I show you how to store sessions in the database and some advantages to storing the sessions this way. We also see how easy it is to get the amount of users currently logged in when using database sessions. Just adding a note to this: One user can have multiple sessions stored in DB, ie, they delete their account and register again, or by using different devices to access the site, I upgraded the SQL to check for a DISTINCT value in user_data: SELECT count(DISTINCT user_data) as count FROM ci_sessions WHE
7 سال پیش در تاریخ 1396/02/27 منتشر شده است.
130 بـار بازدید شده
... بیشتر