bref icon indicating copy to clipboard operation
bref copied to clipboard

Document using sessions via DynamoDB

Open mnapoli opened this issue 5 years ago • 6 comments

There is this great article on using DynamoDB for storing PHP sessions: https://medium.com/five-words/simple-session-handling-for-load-balanced-php-applications-494cfb3aa6e7

I think we can simplify some steps in Bref, and we could document it. Not sure if this would be the best way to do when using a PHP framework though 🤔

mnapoli avatar Aug 28 '19 06:08 mnapoli

I implemented sessions in a bref http project with the steps noted in that post. There really isn't much to it, you enable it and it just works.

What steps do you think bref could simplify though? To me it seems like this would be a documentation / suggested use case but really not anything bref should be in charge of.

aknosis avatar Sep 06 '19 17:09 aknosis

That's good to know thanks. Maybe just a documentation could be enough. I haven't needed this I usually use a framework.

What we should document should address Symfony, Laravel and the "no framework" cases.

mnapoli avatar Sep 13 '19 13:09 mnapoli

AWS has a nice write up on their docs for using DynamoDB with PHP session that might be helpful: https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/service_dynamodb-session-handler.html

jasonmccallister avatar Feb 13 '20 11:02 jasonmccallister

@mnapoli I can document with Laravel. Do you want that I make a PR in brefphp/examples ?

pmayet avatar Feb 13 '20 11:02 pmayet

@mnapoli I can document with Laravel. Do you want that I make a PR in brefphp/examples ?

Yes that would be great!

mnapoli avatar Feb 13 '20 12:02 mnapoli

@mnapoli Done with PR https://github.com/brefphp/examples/pull/11

pmayet avatar Feb 13 '20 15:02 pmayet