I'm currently working through the process of scaling out our server setup and we're to the point where we need to reconfigure the sessions to be stored in a high availability solution (having people logged out if a server goes down is not an option). We're trying to use Redis because we're already using it for other parts of the site. The trouble I run into is that there doesn't appear to be any support for this. Before I create my own session handler class, I thought I would ask if anyone else knows if there is a project for this use case.
Asked
Active
Viewed 1,693 times
2
-
1Can you not use rawCommand as mentioned in your link? – Chris Tanner Feb 13 '17 at 17:02
-
@ChrisTanner, I guess I'm looking for how I can set up the session handler. I think, the rawCommand would only work outside of the sessions. – Scott Keck-Warren Feb 13 '17 at 17:13
-
1Hey @ScottKeck-Warren, did you get to resolve this? I'm in a similar place, where we need to use redis-sentinel but can't. – droidbot Jan 31 '19 at 11:41
-
1@droidbot I had to write my own session handler. I documented how we switched without downtime on my blog at http://www.thisprogrammingthing.com/2017/migrating-sessions-in-php/ and it includes example code. – Scott Keck-Warren Feb 01 '19 at 12:47
-
1awesome.. thats handy @ScottKeck-Warren – droidbot Feb 01 '19 at 15:34