Login duplicate

Hi a question, how can you avoid duplicate logins with Phalcon? If a user already logged in, you can not enter this user until closing session



8.1k

store session data in your database and you should have some backend job to check that user is keepalive . try this http://stackoverflow.com/questions/38043015/tell-if-http-request-is-keep-alive

With high concurrency, you'd better use (lib)Memcached.



36.2k

Incubator

With high concurrency, you'd better use (lib)Memcached.

edited Nov '16

No, you don't need Incubator for that.

For both Phalcon 2.x and 3.x you have libmemcached session adapter:

https://docs.phalconphp.com/en/latest/api/Phalcon_Session_Adapter_Libmemcached.html