XF 1.3 xf_session cookie changes on each page view behind CDN, xf_user does not change


Well-known member
On each new page view the xf_session cookie changes. Within the admin area the xf_admin cookie changes randomly, at the public area the xf_admin cookie does not change. The cookie xf_user always stays the same.

The community is behind Amazon Cloudfront which lets all cookies and headers through. When accessing the server without the CDN directly all cookies stay the same after each page view.

Do you know what triggers the xf_session change? Thanks!


XenForo developer
Staff member
The IP appears to be changing. You need to setup $_SERVER['REMOTE_ADDR'] to have the correct IP via a line in config.php.