I’m developing high traffic web site by CodeIgniter,sessions are stored in database because of security.
Is it good way to use apc instead of session to store something like logged in users and other security things?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would say that it’s a bad idea because APC caches are not shared between individual php processes (php-fpm could be an exception). Furthermore they won’t be able to support multiple clustered environment without linking the user to a certain frontent which you want to avoid in a clustered environment (hurts load balancing, prevents failover).
Look into the memchace session handler, it’s fast, and can be clustered easily and probably already built in to your php install. Ofcourse you will have to install a memcached on your server.