Support

Admin Tools

#14550 cache & login .htaccess issue

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Sunday, 06 January 2013 14:59 CST

mglorencin

Mandatory information about my setup:

 

Have I read the related troubleshooter articles above before posting (which pages?)? YES

Have I searched the tickets before posting? YES

Have I read the documentation before posting (which pages?)? YES

Joomla! version: (2.5.8)

PHP version: (5.4)

MySQL version: (unknown)

Host: (mediatemple)

Admin Tools version: (latest)

 

Description of my issue:

I noticed an annoying issue, when I would login, I needed to refresh the page, to see that I am logged in. Same thing if I logout, until I refresh the page I do not see that I did log out.

 

I tracked the issue down to .htaccess maker. I replaced custom.htaccess back with original one and the issue was solved. I did not get any other errors because of custom .htaccess file only that session caching problem, so my question is, do you know which option in .htaccess maker is the cause of my problem? …I could try and toggle on/off all the available options, which would could take quite some time … I would appreciate any pointers :)

nicholas
Akeeba Staff
Manager

That's the first time I hear about an issue like that. Most likely it's the www to non-www redirection and your configuration.php's $live_site not matching.

For example: if you redirect non-www to www then your $live_site must either be blank or set to http://www.example.com (with the www). Conversly, if you redirect www to non-www then your $live_site must either be blank or set to http://example.com (without the www). In any other case you have a problem with the session cookies and you have to reload the page.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

mglorencin

yes, it must be something with session cookies, I investigated forther and now I am not sure anymore it's admintool .htaccess maker. I had those redirect fine, and blank in live_site setup, just in case I did set it up for www to non-www, to match what I had in .htaccess

I am still looking into it, it may be cloudflare caching problem in combination with .htaccess. I will report back if I solve it.

nicholas
Akeeba Staff
Manager

IIRC you need a special setup to let CloudFlare know about the back-end session cookies. I would recommend against using a CDN to access the back-end of your site. If you do you'll see tons of issues. I am quite sure that Akeeba Backup doesn't work when you are using a CDN (the CDN caches the AJAX requests and the backup doesn't run) and Admin Tools may seem to have applied a change but not really. The back-end of a website is the counter-example of having to use a CDN. It's something which doesn't benefit from a CDN at all and has every reason not to be behind a CDN.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

mglorencin

Glad you mentioned that and reminded me about it ...bellow is a csreenshot of page rules. Cloudflare offers up to 20 page rules. I just set one up to bypas caching for administration/* completely, but left their firewall security on.

mglorencin

And with that tip you gave me I have solved my issue, thank you very much Nicholas :) ...and I am also about to renew my subsription.

nicholas
Akeeba Staff
Manager

Awesome! I am glad I could help :)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!