Disable logout confirmation - Moodle 2.1.2+

Disable logout confirmation - Moodle 2.1.2+

by Cesar C -
Number of replies: 2

Quick question: Is there any way to disable the logout confirmation page on Moodle (2.1.2+)?  We don't want users having to click twice to logout.

Average of ratings: -
In reply to Cesar C

Re: Disable logout confirmation - Moodle 2.1.2+

by llywelyn morgan -

we too would like to know if there is an answer to this.

In reply to llywelyn morgan

Re: Disable logout confirmation - Moodle 2.1.2+

by Jason Hollowell -

I've been reading up a bit on this as I would like to be able to add a link that logs the user out without having to click yet again on the confirmation page. The problem seems to be that a simple link that calls logout.php does not contain the users sesskey information which is necessary for a secure logout and to avoid cross-site request forgery (which I don't completely understand). I think that it should be possible to add a logout link without being subjected to the confirmation screen but it is likely quite a bit more involved than just adding a simple link.

I've inquired about it here but the post was an old one so I don't know if I'll get a response or not.

Jason