Page 1 of 1

Session handler with CDN

Posted: Mon Jan 31, 2022 7:01 am
by goble
Hello,

Following this post viewtopic.php?f=709&t=991392.

Am having issues in terms of how Joomla handles Front-end users after login. Examples :
- a user will be redirected to wrong page after login
- a user will see another username in login module (this other username comes from another logged in user at this moment)

The parameters at Cloudflare was :

Caching:
- ‘Browser Cache Expiration’ to ‘Respect Existing Headers’
Rules :
- Browser Integrity Check: On, Browser Cache TTL: an hour, Cache Level: Cache Everything, Edge Cache TTL: a month

To temporary sort out the issue, settings have been set to:
- ‘Browser Cache Expiration’ to ‘2 minutes
Rules :
- Browser Integrity Check: On, Browser Cache TTL: an hour, Cache Level: Standard, Edge Cache TTL: a month

But with new setting am having very long TTFB again.

P.S Would Global Config > System > Session Settings > Session handler set to PHP instead of Database help ? Anyone reading in have got some experience with handling joomla users when using CDN ?

Re: Session handler with CDN

Posted: Mon Jan 31, 2022 8:27 am
by Per Yngve Berg
php is more efficient than the database.

Re: Session handler with CDN

Posted: Mon Jan 31, 2022 8:56 am
by goble
Thanks @Per,

Yes I've read a bit about it and it is recommended when using SSD HDDs on the server (which is my case)

Sorry for this question which could be a dumb one. If I set Session handler to PHP, is there a file that will handle this ? And if so which one ? I was planning to create a rule so that this file in not cached by CDN, that could sort out the issue, but not sure.