Logout on page load or form completion
-
Hi All,
I’m working on a new site for work and i’ve come across an issue that i thought would be really simple to find a solution to but so far i’m at a loss.
The site i’m working on requires users to log in using 2 security codes and then confirm some details we hold on file about them.
All pretty straight forward but what i need to be able to do is log them out once they have clicked confirm on a form.
I’m using wordpress 4.2.4 and Formidable Pro and a couple of other plugins to achieve the functionality so far but the logout function is alluding me.
I thought of 2 ways of achieving this:
1. Set a logout URL as the completion page address so when the user clicks “confirm” the form will submit and the URL they will be redirected to will log them out.
or
2. I wondered if i could set a page up that will logout anyone as soon as the page loads?
Or is there a better way?
I’m fairly limited in my php ability so any help / advice / code snippets etc would be hugely appreciated.
Thanks
Chris
The topic ‘Logout on page load or form completion’ is closed to new replies.