That is kind of my plan and where I landed last night. What i figured I need to do is:
- Loop through the webhook data and get all email addresses.
- Loop through the session files and read each one to find the one with the matching email address
- Get that session_id from the file.
- Delete the session with that session_id
I was hoping there was a built in, or at least simpler, method for logging out a user based on an email address, but nothing in the code looks like there is.
I got through the first half of #2 last night, and will see if I can get it finished tonight. It wont be elegant or pretty, but hopefully it will work.
Thanks for the reply.