Incorrect sesskey submitted, form not accepted!

Incorrect sesskey submitted, form not accepted!

by Alexander Quesada -
Number of replies: 2

Hello,


I am having a problem creating a quiz. I created a short 3 question quiz to try it out and it worked well. As soon as I edited it or created a new quiz with 8 questions, it gives me the error:


Error writing to database


I turned debugging on and now it just says:


Incorrect sesskey submitted, form not accepted!


Before debugging I searched for an answer, I called HostGator and explained that I need to raise the max_allowed_packets (as advised on some threads). That wen't nowhere since I am on a shared server, they said no.


After I turned on debugging I searched for the error but have not found a solutions.


Any help is much appreciated

Average of ratings: -
In reply to Alexander Quesada

Re: Incorrect sesskey submitted, form not accepted!

by Colin Fraser -
Picture of Documentation writers Picture of Testers

From Moodle Docs

Some reasons why you might have got an "Invalid Sesskey" message are:

  1. Your site doesn't have the PHP setting "sessions.autostart=0" (see Installing Moodle - software)
  2. You logged out at some time between opening the form and submitting it.
  3. You have followed a bad link to a form script.
  4. Your database has an incorrect value for sessioncookiepath in the mdl_config table.
  5. You edited the code in a file on the server while logged in to your moodle website.


This discussion here might help as well. 

Average of ratings: Useful (1)
In reply to Colin Fraser

Re: Incorrect sesskey submitted, form not accepted!

by Alexander Quesada -

Thanks for the information, I was able to resolve the issue!


After reading through that link you posted, as well as a few other threads, I saw some people were having issues related to Google Chrome. I attempted to recreate the problem on Internet Explorer and it did not occur, I was able to post the quiz. 


I find this very odd, I guess I have to switch out of Chrome now sad.


Anyway, thanks so much for the help!