• Resolved rickg1234

    (@rickg1234)


    Hello,

    I have the following process:

    1. User logins in to site (Friends Only) with email/code
    2. User performs one task and when it is finished I kill the session, reset cookies etc. Now the user is logged out.
    3. At this point (or just before) I would like to also remove the email/code they were using to access the site so they no longer have access to the site. How can I do this?

    Many Thanks

    Ric

    https://www.ads-software.com/plugins/friends-only/

Viewing 1 replies (of 1 total)
  • Thread Starter rickg1234

    (@rickg1234)

    I resolved this by:

    1. Collecting the email submitted via the form in a session
    2. Collecting the WP option value for Friends Only
    3. String replace, to remove the value stored in session from the WP option value
    4. Update WP option value with new replaced string

    Once the session is then killed the whole site become inaccessible for the “Friend”

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Remove email once used’ is closed to new replies.