Logout link

Re: Logout link

by Davo Smith -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
In PHP, if you want to find the sesskey of the user (which is _not_ the session of the current user, but, instead, a CSRF protection mechanism), then call the function:

sesskey();

If you need that in some javascript, then you'll need to pass it to your javascript when you initialise it from your PHP code.