uFlex and AWS Elastic

26 views
Skip to first unread message

Herick Paiva

unread,
Jan 24, 2014, 5:22:12 AM1/24/14
to uf...@googlegroups.com
Hi all,

I having an issue using uFlex with Php setup on Amazons platform. Whenever I get a high demand (as it should work), AWS will scale up (meaning it will bring another server on to help out with the load) but however if user is logged in and gets to reload a page, it could be connected with another instance that it initially was connected and it will get logged out. I am pretty sure it has to do with PHP sessions.

Is there a way to move sessions on this script to the db for example? That way I don't get disconnected

I hope I could explain what my problem is!

Eric Ellis

unread,
Jan 24, 2014, 6:24:27 AM1/24/14
to uf...@googlegroups.com
The session is just a php session, if I understand the code correctly.  There are several ways to manage them externally, but I've not implemented any of them.  


Sent via the Samsung GALAXY S®4, an AT&T 4G LTE smartphone
--
Project's home page http://ptejada.com/projects/uFlex/
---
You received this message because you are subscribed to the Google Groups "uFlex" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uflex+un...@googlegroups.com.
To post to this group, send email to uf...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/uflex/2a8a547b-180d-4b35-aec0-20ba06ac0377%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Pablo Tejada

unread,
Jan 24, 2014, 7:06:54 AM1/24/14
to uf...@googlegroups.com

Yes this is a usual issue with PHP and sessions in general when using a distributed system such as AWS.

Check out this article http://aws.typepad.com/aws/2012/04/scalable-session-handling-in-php-using-amazon-dynamodb.html

--
Reply all
Reply to author
Forward
0 new messages