Support » Plugin: Simple Membership » Logical bug, swpm_in_use cookie not cleared at logout

  • With successful login an authentication cookie and an additional cookie swpm_in_use is set.

    This makes it possible to configure cache plugins or similar to exclude pages if that swpm_in_use cookie is present, as also advised in some forum posts.

    At logout the authentication cookie is cleared but the cookie swpm_in_use is still set.

    After logout cache plugins will continue to find that cookie and not start to deliver cached pages again.

    Suggested change: Cookie swpm_in_use should be cleared at logout as well.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wp.insider

    (@wpinsider-1)

    The problem is that when a user was logged-in and then they logout, clearing that cookie will immediately start to show cached pages to that particular user (and that will cause issues). That user still needs to see dynamic pages for better behavior (if he sees the cached protected page that he just saw before, it won’t be a good experience). Most of our users who use caching want the current behavior of the plugin. So yes, I understand your point but there is another point/angle to consider for this also.

    You can use our plugin’s following logout action hook to add your own little custom code that clears the cookie which will impact your site only:

    do_action( ‘swpm_logout’ );

    Thread Starter Ov3rfly

    (@ov3rfly)

    Most of our users who use caching want the current behavior of the plugin.

    Wondering if your users who use swpm_in_use exclusion know, that after login/logout their members actually do not use any caching for 3 days or even 14 days (if rememberme is checked) for the whole website.

    Would suggest to clarify this behaviour in plugin FAQ or other documentation, did only find these two cache plugin compatibility notes which currently do not mention the expire time of swpm_in_use.

    Plugin Author wp.insider

    (@wpinsider-1)

    I agree with adding more info to the documentation. We will try to add more info.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Logical bug, swpm_in_use cookie not cleared at logout’ is closed to new replies.