Cloudflare & PHP sessions

Link: Cloudflare & PHP sessions

<p>I have been searching for a possible fix to my PHP session issues on Cloudflare for a while. This is great.</p>&#13;

Session handling in phpBB3 requires a user to use one IP address per session, therefore if your IP address changed, you will be prompt to login again.

Cloudflare is a web caching service that cache static contents of a website by acting as the nameserver that manage the website domain name. Therefore, every request to the domain name will pass through Cloudflare system first and any cached contents will be served from Cloudflare servers instead of the web hosting server.

However, when using Cloudflare service, the REMOTE_ADDR value for PHP $_SERVER will follow Cloudflare servers IP address. Therefore, you might face problem when using phpBB (or any other web app that rely on session tied to the IP address) with this service.

[read more]

 
35
Kudos
 
35
Kudos

Now read this

Ivory Tower: Is college worth the cost?

Looking at TechCrunch and other successful entrepreneurs, I ask myself: “Why go to high school?” “Why go to college?” “If I’m learning something i will never use, why learn it?” Today I watched a documentary called Ivory Tower... Continue →