Sergio Rodriguez
Sergio Rodriguez

Reputation: 8688

share php session

I recently ran in a problem and I've been trying to resolve it with out any luck. I'm, trying to share the php session across several servers php/apache level on all server using GlusterFS,however, although the session is accessible on all servers the session does not get transfer once I hit a different sever. I get logged off.

Upvotes: 3

Views: 1951

Answers (1)

Pascal MARTIN
Pascal MARTIN

Reputation: 401182

Generally, when people want to use load-balancing, and they want one user balanced to several servers, they store sessions :

  • either using a database, which is accessible from every web-servers
  • or using something like memcached -- which is a distributed cache server (and really works well when you want to store that kind of temporary data, and you have several servers that need to access it).

I don't know about GlusterFS (I have actually never heard of it), but I've seen sessions stored in either database and memcached, and those work quite fine.

Would one of those solutions not be OK for you ?

Upvotes: 7

Related Questions