HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   How to share PHP sessions with PHP-FPM? (http://www.howtoforge.com/forums/showthread.php?t=60723)

darkangel 27th February 2013 19:25

How to share PHP sessions with PHP-FPM?
 
In order to share sessions between two sites using Fast-CGI, I had to edit their .php-fcgi-starter files and add "umask 0002" (I also had to remove "-d session.save_path=/var/www/clients/clientX/webX/tmp \" from one of the sites). (see http://www.howtoforge.com/forums/showthread.php?t=53392)

How would this be done when using PHP-FPM?

till 27th February 2013 23:37

Why dont you use a shared session storag in your scripts like mysql or memcache?

darkangel 28th February 2013 00:10

Quote:

Originally Posted by till (Post 292805)
Why dont you use a shared session storag in your scripts like mysql or memcache?

It's just a temporary solution.

Actually I might look into using memcached, because there are other benefits (namely speed).

Thanks.

darkangel 28th February 2013 12:13

On second thought, I'd prefer not to use memcached right now, as it's not a simple solution (see issues here).

So my question remains. :-)


All times are GMT +2. The time now is 18:35.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.