Migrating php sessions to redis #255

Closed
halukakin opened this Issue Sep 29, 2012 · 3 comments

Projects

None yet

4 participants

@halukakin

The way I understand it. If we were to switch redis for php session handling. Existing session data would be lost.

So we need to write some sort of migration script. I checked out the following script. I wanted to see if it is possible to code something similar. But a few functions similar to writeRawSession(),encodeData(), are probably necessary before we can code a migration script.
https://github.com/colinmollenhour/Cm_RedisSession/blob/master/migrateSessions.php

It would be great if you could provide similar functions.

@renasboy

Hi,

just created such a script in bash and added to my repo.

https://github.com/renasboy/php-redis-migrate-sessions

@michael-grunder
Member

+1 For using the mass insertion protocol. :)

@nicolasff
Contributor

@renasboy Thanks for the migration script!

@nicolasff nicolasff closed this Feb 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment