Page 1 of 1

Sign Up Session Not Clearing

PostPosted: September 1st, 2011, 7:22 pm
by hcibrent
Hey Cris or Jason,

I am noticing in the setup and design of our registration process when I fill out the form and then submit, I can go back (hit back button) and the forms still have the info in place. ANy ideas on how to make the sessions time out or clear after sign up? I just want maximum security on the SSL links for my clients.

Thanks for everything, lovin the Pro Plugin!

Re: Sign Up Session Not Clearing

PostPosted: September 1st, 2011, 11:28 pm
by Cristián Lávaque
Thanks for the kudos!

I'll email Jason your question, but you may want to google about this too. http://www.google.com/search?q=how+to+c ... ter+submit

Re: Sign Up Session Not Clearing

PostPosted: September 2nd, 2011, 6:42 pm
by Jason Caldwell
Each browser handles this differently, but you can try setting no-cache headers in your theme,
for specific Pages and/or Posts where s2Member Pro Forms appear.

WordPress comes with a nice utility that makes this easy: nocache_headers()

Try creating this directory and file:
/wp-content/mu-plugins/s2-hacks.php
Code: Select all
<?php
add_action 
("template_redirect", "my_nocache_headers", 1);
function my_nocache_headers ()
    {
        $one_of_these_post_or_page_ids = array (1, 2, 3);

        if (is_singular ($one_of_these_post_or_page_ids))
            nocache_headers ();
    }
?>