CodeIgniter Project Tutorial 11 - Storing Sessions in the Database

Publicado em: 12 Março 2013
no canal de: Winterwind Inc.
12,045
30

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 WHERE user_data LIKE '%logged_in\";i:1%'

Anthony Vipond is a senior software developer and the founder of Winterwind Software Services, a software development agency in the Philippines. Have your website, app or blockchain application developed by Anthony and his team by emailing him at anthony[at]winterwind.com. Learn more about Winterwind at https://www.winterwind.com


Nesta página do site você pode assistir ao vídeo on-line CodeIgniter Project Tutorial 11 - Storing Sessions in the Database duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Winterwind Inc. 12 Março 2013, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 12,045 vezes e gostou 30 espectadores. Boa visualização!