- January 15, 2015 at 8:49 pm #3012
The remember me option on my site does not seem to set the expiration date of the cookie. it still shows an expiration for end of the session.
I have tried changing themes but still not setting an expiration date.
January 16, 2015 at 11:25 pm #3021
- This topic was modified 4 years, 3 months ago by Steve.
Thinking it might be a plugin conflict. I setup another site with a fresh WordPress install and just the pi-register plugin. With the plugin active the remember option does not work.
WordPress version 4.1January 16, 2015 at 11:34 pm #3023
Please try to disable Pie-Register and use default wp-login and see if this is working as expected otherwise it may be related to your server configuration.
ThanksJanuary 17, 2015 at 12:34 am #3024
yes i tired that and it did work with the plugin disabledJanuary 19, 2015 at 4:08 pm #3032
It’s really strange, PR uses wordpress own remember me feature, so if wordpress remember me feature working for me the PR should work as well.
Can you please post the expected behavior and what it been doing? So i can forward it to our engineers?
ThanksJanuary 19, 2015 at 11:39 pm #3038
Sure. When logging into my site and I check off the remember me box the expiration date on the cookie says “When the browsing session ends”. It does not update to the default WordPress amount of two weeks. if I disable the plugin and use the default WordPress login and check the remember me option then the cookie gets updated with the default 14 day expiration date.
I have tried this with the default twenty fourteen theme on a fresh WordPress install with the same results.
ThanksJanuary 20, 2015 at 8:54 pm #3043
Thank you for the updated info, I am having team looking into this issue
with all the information you provided, I will update you once we done.
Thanks for your patience.
MohsinJanuary 20, 2015 at 11:08 pm #3046
Thank you. Looking forward to hearing back.April 25, 2015 at 2:29 am #3399
Do you have a solution?! Because I have the same problem.
I already tried to use the WordPress Login Form, but if Pie Register is active, remember me won’t work…June 2, 2015 at 1:48 am #3565
the error lies in the incomplete call of
wp_set_auth_cookie()(pie-register.php 2.0.17, on line 944, 979 and 992).
<?php wp_set_auth_cookie( $user_id ) ?>
the correct function call is
<?php wp_set_auth_cookie( $user_id, $remember, $secure ) ?>
You need to check against
<?php isset($_POST["rememberme"]); ?>and set $remember accordingly for
It think this should be solved quite quickly – you’re already using the correct core function, and just need to add the parameters. For details, the codex in all it’s greatness is here to help: https://codex.wordpress.org/Function_Reference/wp_set_auth_cookie
You must be logged in to reply to this topic.