Concrete5 5.8.2 and 5.8.3 dropping session after logging in
Permalink
Hi!
PROBLEM:
1. Go to /login and enter login and password
2. Dashboard is shown
3. If I try to go to any pages this bring me to /login page (SESSION IS DESTROYED and NEW SESSION CREATED).
4. If I try to enter my credentials again - all is OK (NEW CREATED SESSION IS EXISTS).
Why Concrete5 have destroy own sessions after login?
System: Amazon EC2, PHP 7+, MySQL 5.5+, NGINX, PHP-FPM
PROBLEM:
1. Go to /login and enter login and password
2. Dashboard is shown
3. If I try to go to any pages this bring me to /login page (SESSION IS DESTROYED and NEW SESSION CREATED).
4. If I try to enter my credentials again - all is OK (NEW CREATED SESSION IS EXISTS).
Why Concrete5 have destroy own sessions after login?
System: Amazon EC2, PHP 7+, MySQL 5.5+, NGINX, PHP-FPM
Possibly your server is running a back-end caching program such as Varnish or Cachewall.
SOLVED!
Problem with Cloudflare:
Cloudflare is a reverse proxy, so when someone visits your website while you're using Cloudflare the visitors would appear to be coming from Cloudflare's IP addresses. You can resolve this by restoring the original visitor IPs using mod_cloudflare, or one of the two special HTTP Request headers.
Answer for NGINX:
https://support.cloudflare.com/hc/en-us/articles/200170706-How-do-I-...
Problem with Cloudflare:
Cloudflare is a reverse proxy, so when someone visits your website while you're using Cloudflare the visitors would appear to be coming from Cloudflare's IP addresses. You can resolve this by restoring the original visitor IPs using mod_cloudflare, or one of the two special HTTP Request headers.
Answer for NGINX:
https://support.cloudflare.com/hc/en-us/articles/200170706-How-do-I-...