PHP Sessions

Hi,

I’m new to Cloudflare anbd love it but wondering if there is anything special that needs to be done when working with PHP sessions?

Thanks,
D

Nothing, will work out of the box. Of course you need to take caching into account (especially if you cache everything) but overall if there is a session cookie that should even override caching.

Thanks for the reply… I just discovered I may have to do this:

if (isset(_SERVER['HTTP_CF_CONNECTING_IP'])) _SERVER[‘REMOTE_ADDR’] = $_SERVER[‘HTTP_CF_CONNECTING_IP’];

If i use php to validate users… is that right?

You should do that on a server level, not PHP.

Yes, I’ll have to research that… thanks for your help, appreciate your time.

This topic was automatically closed after 31 days. New replies are no longer allowed.