Support » Plugin: Contact Form 7 Multi-Step Forms » Multiple users

  • Resolved vor78

    (@vor78)


    Hi,
    I have a form which is in a member’s area of my site.

    I just noticed that if I go through some steps of the form, log out then log back in as someone else, then it has saved the information I entered as the original user.

    Is there a way to stop this?!

    .. and then ideally save this data with the user so they can go away and come back to it later.

    I have the Pro version if that makes a difference.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author webheadcoder

    (@webheadllc)

    Hi,

    The data from the form is stored in the browser. So you’ll need to completely close your browser to clear the data. A user can go away and come back in the same session (not close the browser) and still see the data.

    Thread Starter vor78

    (@vor78)

    Thanks for the reply – from looking at the code it seems the non-premium version doesn’t do this?

    I’m thinking I can revert back to standard and can then put hooks in init and shutdown to read/write cf7msm session/cookie variables to a user_meta row.

    This should work, right?

    Plugin Author webheadcoder

    (@webheadllc)

    The non-premium version also clears the data once the browser is closed (the cookies expire when the browser session ends). The only difference is the data is saved as cookies instead of session storage.

    You could theoretically find hooks in the core CF7 plugin and save all the posted data to user_meta in both the free and premium versions. You might be able to use the wpcf7_before_send_mail hook.

    Thread Starter vor78

    (@vor78)

    Thanks – doing it with the cf7 hooks sounds a better idea than on the init and shutdown of every page.. although I do have it working with that now as I needed a quick fix!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.