Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrating php sessions to redis #255

Closed
halukakin-legacy opened this issue Sep 29, 2012 · 3 comments
Closed

Migrating php sessions to redis #255

halukakin-legacy opened this issue Sep 29, 2012 · 3 comments

Comments

@halukakin-legacy
Copy link

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
Copy link

Hi,

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

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

@michael-grunder
Copy link
Member

+1 For using the mass insertion protocol. :)

@nicolasff
Copy link
Member

@renasboy Thanks for the migration script!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants