Php session

Hi,
When a customer enters the site we check if there are utm values in the url
If so we keep the values in session

Below is the php code of the header file

if (! isset ($ _ SESSION))
{
session_start ();
}

 if (isset ($ _ GET ['utm_source']))
 {
     $ _SESSION ['utm_source'] = $ _ GET ['utm_source'];
 }

When the site works without Cloudflare the session values are kept normal
If I connect the site via Cloudflare, I log in, but the session values are not saved

For me, this seems like a problem, which is occurring because you do not restore the original IPs on your server.

Please search the forum about “restoring original IPs”, or tell us what webserver you are using?

  • Nginx?
  • Apache, LiteSpeed?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.