Hutchy68 / pivot

A MediaWiki mobile skin which "Pivots" seamlessly to any size display.
https://pivot.wikiproject.net
BSD 2-Clause "Simplified" License
37 stars 18 forks source link

Sessioning Error #40

Closed IsaacDodd closed 7 years ago

IsaacDodd commented 7 years ago

Setup

Issue

Hello, I'm having a problem with Pivot interfering with logging into the installation of MediaWiki. I contacted my hosting company, which has been very good with fixing such problems, and even they were not able to figure it out. Mediawiki allows for logging in without the Pivot skin. With the Pivot skin I get an error that prevents me from logging in.

Hutchy68 commented 7 years ago

Hmm, that is strange. I have not encountered that error. Pivot isn't doing anything special, it is using the default login from MW core.

What does the error say? Can you log out and browse around your wiki? Check to see if you are staying logged in and not really logging out?

I just ran into that issue on another site using vector. I had to delete my cookies and setting $wgCookieDomain seemed to fix it.

Hutchy68 commented 7 years ago

One more thing. Can you log in and then switch to Pivot skin without issue?

kghbln commented 7 years ago

Never heard about this before either. If it is related to sessions I suggest to also add $wgSessionCacheType = CACHE_DB; to your "LocalSettings.php" file. You are not by chance using any extension which interacts with authentication?

Hutchy68 commented 7 years ago

Yes, I did that too 😄

Hutchy68 commented 7 years ago

What really worked was clearing my cookies in my browser. MW is doing some strange persistence. I could not log out of that site. It even showed me logged out but the message was login failure on login and miraculously I was logged in. I even logged out, closed browser, reopened and found still logged in.

kghbln commented 7 years ago

I even logged out, closed browser, reopened and found still logged in.

This may also be a browser thing depending on your setup. e.g. Firefox keeps the stored website cache even if it gets closed. $wgExtendedLoginCookieExpiration and $wgCookieExpiration are another two friends here.

IsaacDodd commented 7 years ago

Thank you for all of your help! I was able to get it to work by changing both the wgCookieDomain variable and also by setting wgMainCacheType to CACHE_ANYTHING which solved it. Thanks once again! Great theme by the way, please keep extending and working on it

Sincerely, Isaac M. E. Dodd

On Sat, May 6, 2017 at 6:14 PM, Karsten Hoffmeyer notifications@github.com wrote:

I even logged out, closed browser, reopened and found still logged in.

This may also be a browser thing depending on your setup. e.g. Firefox keeps the stored website cache even if it gets closed. $ wgExtendedLoginCookieExpiration and $wgCookieExpiration are another two friends here.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Hutchy68/pivot/issues/40#issuecomment-299669106, or mute the thread https://github.com/notifications/unsubscribe-auth/AEuGq25QwVvYYWzGhHsO-HwE2ILWISqjks5r3PDRgaJpZM4NS1eY .

Hutchy68 commented 7 years ago

Solved