errorcode=4 on session expiration

errorcode=4 on session expiration

by Alexander Kurakin -
Number of replies: 7

Good day!

I have errorcode=4 on session expiration.

Is it normal?

Thanks.

Average of ratings: -
In reply to Alexander Kurakin

Re: errorcode=4 on session expiration

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Where, exactly, are you seeing errorcode=4?

Can we get a screen shot perhaps?

In reply to Howard Miller

Re: errorcode=4 on session expiration

by Alexander Kurakin -

http://site.com is HTTP-redirected to http://site.com/face.html?errorcode=4 (where http://site.com/face.html is the alternative login page).

In reply to Alexander Kurakin

Re: errorcode=4 on session expiration

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

If you are using 'alternateloginurl' (an important point you didn't mention) it's normal, yes. Any error code is added to the redirect

1 = cookies not enabled

2 = invalid username

3 = invalid login

4 = session expired


In reply to Howard Miller

Re: errorcode=4 on session expiration

by Alexander Kurakin -

Thanks! I looked here...

In reply to Alexander Kurakin

Re: errorcode=4 on session expiration

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
In reply to Howard Miller

Re: Re: errorcode=4 on session expiration

by T K -
I am facing the same problem on my alternate login URL
Even while the login page is working the link will show https://xxx/dashboard/login.php?errorcode=4

Due to this login has been very slow, it takes up to 4mins to login!

How can i solve this?
In reply to T K

Re: Re: Re: errorcode=4 on session expiration

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Can you confirm that 'normal' Moodle logins work properly (without alternate URLs)