tarantool / tarantool-php

PECL PHP driver for Tarantool
http://tarantool.org/
Other
86 stars 24 forks source link

support session handler API #29

Open kostja opened 9 years ago

kostja commented 9 years ago

Support integration with expirationd and store sessions via php session handler API in expirationd space.

golgote commented 9 years ago

That would be a nice addition. Pecl redis extension has this feature. Also, using msgpack format to store session data, it would make sharing Php sessions with other tools (like lua and openresty) easier.

ekho commented 9 years ago

I wrote experimental SessionHandler on pure php. It required to init db in tarantool. I wrote simple lua script for it

You can see usage example.

@bigbes you can steal my scripts ;)

bigbes commented 9 years ago

@golgote thank you for your interesting in this task and this driver:) i'll write it later, buf for now it seems to be a great idea to use @ekho pure php realization. @ekho thank you for your php script with session handling, i suppose that must be interesting for many users. I suppose that you don't have problems with this driver now?)

ekho commented 9 years ago

@bigbes I have no problems. But my brother said that he have. I will ask him about details.

If my SessionHandler will be interest anyone I will publish it to packagist

bigbes commented 9 years ago

@ekho If you're interested in my opinion - it's great idea to crate github repo + packagist. I'll post links with descriptions in our README.

ekho commented 9 years ago

@bigbes Ok, I will =))))