• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

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

Marcus

Well-known member
#1
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!
 

Mike

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