Skip to content

Migrate PHP sessions from disk to redis using mass insertion protocol

Notifications You must be signed in to change notification settings

renasboy/php-redis-migrate-sessions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

php-redis-migrate-sessions

Migrate PHP sessions from disk to redis using mass insertion protocol

Usage

Download the file, change the php_session_dir and php_session_prefix vars.
Run the script and wait for it to finish, it takes 16min for 120K files on my slowest system :-D
Usually the script needs to be run with a user with access to php session, that are usually protected for security reasons.
The script also assumes redis is running and no credentials are necessary, if this is not the case for you just change the script.

About

Migrate PHP sessions from disk to redis using mass insertion protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages