fuelphp-storage / fuelphp

FuelPHP framework
http://fuelphp.com
MIT License
274 stars 57 forks source link

Create Session Package #4

Open frankdejonge opened 11 years ago

frankdejonge commented 11 years ago

Is dependant on #3

WanWizard commented 11 years ago

Session has to be created as a separate repository (= composer library). The current 1.x code can be ported without a lot of difficulty, but probably need some refactoring and cleanup.

It has a dependency on FuelPHP/Common, due to the Arr functions required.

For dependencies, it should use callbacks, so that the application wanting to use this library can setup the required callbacks using it's own internal features. For FuelPHP itself, it means that FuelPHP/Foundation will have a Session class that will set this up for use in the FuelPHP framework.

It needs callbacks for:

For cookie storage, it could handle that internally, using the PHP native cookie functions.

WanWizard commented 11 years ago

Basis of the Session library is done.

It uses a separate backend driver class that you inject into the Session manager. Non-fuel dependent drivers will be included in the library (like PHP native sessions, cookies), others have to be injected from elsewhere.

It probably also needs callbacks for validation for the session.