framework icon indicating copy to clipboard operation
framework copied to clipboard

Another session driver

Open andy3rdworld opened this issue 13 years ago • 2 comments

Any plans to add support for AWS DyanamoDB as session driver in /app/config/session.php? Due to increasing popularity of dynamodb (and similar) this could be broadly useful. Really for anyone on AWS with multiple EC2 instances who doesn't want to use sticky sessions behind a load balancer (hopefully everyone).

AWS has a drop-in here: http://docs.aws.amazon.com/aws-sdk-php-2/guide/latest/feature-dynamodb-session-handler.html

andy3rdworld avatar Jul 16 '13 04:07 andy3rdworld

Since they already have one all you need to do is use Session::extend('dynamo', function() { return TheirDynamoHandler }); then use the dynamo driver in your session config.

taylorotwell avatar Jul 20 '13 13:07 taylorotwell

Thanks, where is the best place to call Session::extend() ? global.php?

andy3rdworld avatar Jul 20 '13 21:07 andy3rdworld