-->

Sunday, January 31, 2016

Php Sessions

PHP sessions is a way to help create a sense of persistence for php based applications.
Most systems just set the php sessions to go to files, usually /tmp. Settings can be adjusted with the following:
session.save_handler = files
session.save_path = "/tmp"
for systems having issues with persistence because of CDNs like Akamai, we can put the php session data into memcache. To configure php to use memcache, do the following:
Install and setup pecl memcache (pecl install pecl/memcache)
Setup a memcached instance for
Edit php.ini to use memcache (extension = memcache.so)
session.save_handler = memcache
session.save_path = "tcp://66.76.89.51:20113"

0 comments:

Post a Comment