PHP Session Cookie deleted after 15 minutes

Hi everybody.
I have an issue with PHP sessions. After I activated CloudFlare, PHP sessions last not more than 10-15 minutes; after this time, a new session ID is created (a new value for the PHPSESSID cookie is sent by the server) and the previous session data is lost. It seems like the previous session ID is not valid anymore or it expired.

This issue did not happen before I activated CloudFlare, and if I pause CloudFlare, the issue disappears.
I also tried some Page Rules for the “/admin/” path. The administrative pages are located in this directory and in its subdirectories. I set “https://www.winerytastingsicily.com/admin/*” as URL, and I tried the following rules, alone and together:
Disable Security, Cache Level: Bypass, Disable Apps and Disable Performance
but the issue did not get solved.

These are my hosting’s PHP settings for sessions:
session.auto_start=Off
session.cache_expire=180
session.cache_limiter=nocache
session.cookie_domain=no value
session.cookie_httponly=Off
session.cookie_lifetime=0
session.cookie_path=/
session.cookie_secure=On
session.gc_divisor=1000
session.gc_maxlifetime=7200
session.gc_probability=1
session.lazy_write=On
session.name=PHPSESSID
session.referer_check=no value
session.save_handler=files
session.save_path=/tmp
session.serialize_handler=php
session.sid_bits_per_character=4
session.sid_length=32
session.upload_progress.cleanup=On
session.upload_progress.enabled=On
session.upload_progress.freq=1%
session.upload_progress.min_freq=1
session.upload_progress.name=PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix=upload_progress_
session.use_cookies=On
session.use_only_cookies=On
session.use_strict_mode=Off
session.use_trans_sid=0

I use a custom administrative application. The session is set for staying alive for a maximum of 2 hours from the last request.

Any suggestions? Is there anything I can try?

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