Hi, I need some help getting a site working on AWS. It’s a simple webserver -> dbserver setup so no load balancing. The code and db are deployed and home page loads fine. However the site requires a login, but it seems as if the user gets logged out and returns to the login screen immediately. I don’t think its a db connection issue, there’s no error. It also uses the db to store the session.
Furthermore I can run the server on my local machine but configured to point to the amazon database. That works fine so the db seems restored correctly.
I faced similar kind of issue, logged and logout immediately. It was happened due to issue with session file creation. Check whether your server has sufficient storage and permissions on session path.