Error when logging in with Chrome

Error when logging in with Chrome

by Mathieu Adoutte -
Number of replies: 5

Hi,

I just installed a Moodle 3.8 on an OVH shared hosting.

Everything works fine, and I can log from any browser, except chrome.

I get an error message :

Votre session est échue. Veuillez vous connecter à nouveau.
(Your session expired, please log-in again)

Site's URL : objectifbac.fr
A demo account : demo / Gm3mbUqrB7FkVre!

What I've tried so far : 
- connecting from different machines : fail
- fresh install of chrome : fail
- changing chrome's cookies settings : fail
- erasing chrome's cache : fail
- changing moodle/sessions folder autorisations to 777 : fail
- switch to database-written sessions : fail

I'm running out of ideas Oo

The install seems fine, I do have some server warnings, but they seem unrelated :



Average of ratings: -
In reply to Mathieu Adoutte

Re: Error when logging in with Chrome

by Ken Task -
Picture of Particularly helpful Moodlers

Moodle 3.8 on an OVH shared hosting

Ok, this doesn't really help answering your question about Chrome and your site, but ... did take a look at the environment check you've shared and am shocked!!!

32 bit PHP??!!!!

You won't be able to change that to 64 bit PHP no matter how hard or what you try.  If ... IF ... your courses get large ... they only grow ... they seldom shrink ... and you get over the limit for file size (think it was over 4 Gig) of the backup, you won't be able to backup that course.   Nothing Moodle can do about it.

You won't be able to address the other checks either related to DB either.

Believe me ... have been trying to help another person who host with OVH / shared hosting move to a VPS with same provider.  Reason ... this 'another person' has 1 course that's probably over 4 Gig and this main course can't be backed up.   That is spilling over into ability to do a site backup and store that site backup onto the users account let alone download.

OVH shared hosting might be OK for a WordPress ... but it is seriously lacking for a Moodle 3.8.x and beyond,.

IMHO, OVH hosting sucks!

Sorry ... gotta be honest!

'SoS', Ken


Average of ratings: Useful (1)
In reply to Mathieu Adoutte

Re: Error when logging in with Chrome

by Mathieu Adoutte -
In reply to Mathieu Adoutte

Re: Error when logging in with Chrome

by Ken Task -
Picture of Particularly helpful Moodlers

So in english ... which one was it below?

This one:

Secure cookies only cookiesecure
Default: Yes

If server is accepting only https connections it is recommended to enable sending of secure cookies. If enabled please make sure that web server is not accepting http:// or set up permanent redirection to https:// address and ideally send HSTS headers. When wwwroot address does not start with https:// this setting is ignored.

Or this one:

Only http cookies cookiehttponly
Default: No

Enables new PHP 5.2.0 feature - browsers are instructed to send cookie with real http requests only, cookies should not be accessible by scripting languages. This is not supported in all browsers and it may not be fully compatible with current code. It helps to prevent some types of XSS attacks.

And give it some more thought about OVH shared hosting and 32 bit PHP.

Does OVH shared hosting use mod_security or other such?

'SoS', Ken

Average of ratings: Useful (1)
In reply to Ken Task

Re: Error when logging in with Chrome

by Mathieu Adoutte -
The first one.
Thanks for the heads up with 32 bits php
Not sure how to check for the use of mod_security.
In reply to Mathieu Adoutte

Re: Error when logging in with Chrome

by Ken Task -
Picture of Particularly helpful Moodlers

Security settings (mod_security on/off) would be in that 'lovely' (cough/spit) control panel Plesk for web site.

'SoS', Ken