简体   繁体   中英

using hybridauth behind a load balancer

I have a few running servers, behind a load balancer

I'm using hybridauth to authenticate users throw google and facebook

By reviewing the hybridauth code it seems that it uses the session to store data while it pinging back and forward with the given provider.

When i'm behind a load balancer i'm expose to a scenario: that the machine that started the authentication process is not the machine that will end the authentication process and the session data will vary.. so the authentication will fail

what can i do ?

Thanks

您可以使用laravel轻松地将会话存储在redis或memcache中,这将解决您的问题。

For anyone having an issue like this either with hybridauth or any other thing that stores session Data replication is the answer. I fixed similar issues setting up replicated network storage with GlusterFS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM