Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Link to log out possible?

Aloittaja bobdole2281, elokuu 16, 2013, 11:47:30 IP

« edellinen - seuraava »

bobdole2281

I tried copy and pasting the link to the logout button but this error shows up:

LainaaAn Error Has Occurred!
Session verification failed. Please try logging out and back in again, and then try again.

It's very possible I messed up the link somehow, but can anyone tell me is making an <a href possible for logging out?

Arantor

With some effort, depending on whether you're inside or outside of SMF... so where are you trying to make this happen?
Holder of controversial views, all of which my own.


NIAB

Basic Logout Link:

<a href="' . $scripturl . '?action=logout;' . $context['session_var'] . '=' . $context['session_id'] . '">

Arantor

I didn't want to just quote that because it really depends whether this is inside or outside SMF (e.g. using the API)
Holder of controversial views, all of which my own.


Advertisement: