Picture of CA Edington
Invalid Sesskey - Can't Log In
by CA Edington - Monday, 7 February 2011, 07:24 PM
In the past couple of days, I have succeeded in transferring a WordPress site to a new host, Achixe. Actually, they provided a free transfer for me. This site is the “front page” for my Moodle site, which is http://caezplace.com/moodle/.

The problem is that I now can't log into the Moodle site that I administer. I tried both my current username and password, and a former username and password, but neither worked.

Then I asked for help with forgotten password using my username and then my email address. Both times I got the message
Incorrect sesskey submitted, form not accepted! Although it suggested checking http://docs.moodle.org/en/error/moodle/invalidsesskey, I didn't know where to start checking, which is why I wrote to this list.

Can anyway suggest what I might do next to try to get into my site? Although I can access the WordPress site cPanel, I'm not experienced with using it.

Picture of Peter Ruthven-Stuart
Re: Invalid Sesskey - Can't Log In
by Peter Ruthven-Stuart - Monday, 7 February 2011, 09:40 PM
Hello CA,

Am I right in saying that you copied over your entire moodle system over to a new server, including the moodledata directory?

The moodledata directory is where all files are saved that are uploaded to moodle courses. Also in this directory is a directory called "sessions" in which the "sesskeys" are saved. The problem I think you are having is that since you moved the directory it is either no longer writeable to by the web server (apache), or the session keys are invalid on the new server.

So, I think to solve your problem, first make sure that the server can write to this directory (chmod 770). If that fails, try chmod 777. If that works, it might be best to re chmod the directory back to 770. If changing the access permissions doesn't work, try deleting all the session keys in the directory.

Hope that works.

Will you be in Kochi for the Moodle Moot?