MyBB Community Forums
[Rejected] Cookie problems with higher GZIP compression - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Development (https://community.mybb.com/forum-161.html)
+--- Forum: MyBB 1.8 Development (https://community.mybb.com/forum-165.html)
+---- Forum: 1.8 Bugs and Issues (https://community.mybb.com/forum-157.html)
+----- Forum: Rejected (https://community.mybb.com/forum-184.html)
+----- Thread: [Rejected] Cookie problems with higher GZIP compression (/thread-205736.html)

Pages: 1 2


Cookie problems with higher GZIP compression - OlDirty - 2016-11-09

I tried to set GZIP compression in my forum up to 6. After doing this, I had severe problems logging in and out.
After managing to log into ACP and resetting it to 4, everything was fine again.
Why?


RE: Cookie problems with higher GZIP compression - .m. - 2016-11-09

actually cookies should not be affected by gZip compression level.
basically php files are affected. in general, we suggest to use medium level
of gZip compression
as higher levels certainly affect MyBB source files / plugin files


RE: Cookie problems with higher GZIP compression - OlDirty - 2016-11-09

I returned it back to normal (4), but now I´m having issues even with this setting.
My main page always shows as if not being logged in. As soon as I click on a thread, my welcomeblock changes etc.
Also in ACP some sites stay the same, when clicking on them.
thunderbirdclub.de/forum

Who is online? also won´t change what it displays. However, the div at the bottom of my starting page is correct.


RE: Cookie problems with higher GZIP compression - .m. - 2016-11-09

try clearing your browser cookies (link available here), close your browser, reopen it & check login process again

Edit: you may also have to clear your browser cache .. or try using another browser


RE: Cookie problems with higher GZIP compression - OlDirty - 2016-11-09

Unfortunately still the same.

Also tried another browser and cleared cache.
Anything else that might be responsible for this?

Edit: seems to be resolved now.


RE: Cookie problems with higher GZIP compression - Matt - 2016-11-09

Are you still having issues now? I'm able to log in and stay logged in.


RE: Cookie problems with higher GZIP compression - OlDirty - 2016-11-09

No issues anymore. 
Maybe something with my provider (DNS or so)? I´m no expert.

I also had added this to my .htaccess file:
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 year"
ExpiresByType text/x-javascript "access 3 month"
ExpiresByType application/x-shockwave-flash "access 3 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 10 days"
</IfModule>
## EXPIRES CACHING ##
 and turned ETags off. Which was both a advice from this website.
Might that cause this type of issues?


RE: Cookie problems with higher GZIP compression - .m. - 2016-11-09

^ those cache rules should have no affect on login process & cookie setting !


RE: Cookie problems with higher GZIP compression - Gruttals - 2016-11-10

(2016-11-09, 12:35 PM)OlDirty Wrote: I tried to set GZIP compression in my forum up to 6. After doing this, I had severe problems logging in and out.
After managing to log into ACP and resetting it to 4, everything was fine again.
Why?

Important is not the file extension, but how the server handles the files. Images – no matter what format – will not be compressed with this setting. This wouldn’t make sense, because all image types already use compression in one way or the other. And these compression methods are much more effective in handling bitmaps (image data).


RE: Cookie problems with higher GZIP compression - OlDirty - 2016-11-10

So you´d say, one could also disable compression without having any downside?