Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Migrating php sessions to redis #255

Closed
halukakin opened this Issue · 3 comments

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

+1 For using the mass insertion protocol. :)

@nicolasff
Owner

@renasboy Thanks for the migration script!

@nicolasff nicolasff closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.