-
Author
Tagged: login, cache, logout, remember me, remember
-
July 20, 2015 at 07:08 #69041fuyutoParticipant
Hi,
The Remember me option doesn’t simply work.
The wordpress default “remember me” is 2days or browser close without remember option being checked, 14days with remember option checked (It doesn’t make me logout even if browser is closed).The problem is… with kleo theme, It makes me logout when the browser is closed and it doesn’t matter if “Remember me” is checked or not. So everytime, I need to log in…
Also the biggest problem is when we use Kleo with mobile device.
Mobile Device closes (or half close) the browser when it’s not being used for a while (like 1 hr?).
That means, doesn’t matter Remember me is checked or not, Mobile device users need to login everytime they try to use kleo.Very Very inconvienient…
This same thing happening with your demo too. So this must not be my modification or plugin I use.
I tried to fix by using Plugins listed below,
https://wordpress.org/plugins/remember-me-controls/
https://wordpress.org/plugins/configure-login-timeout/
No luck :<and I tried to put codes below in function.php,
COPY CODEadd_filter( 'auth_cookie_expiration', 'keep_me_logged_in_for_1_year' ); function keep_me_logged_in_for_1_year( $expirein ) { return 31556926; // 1 year in seconds }
No luck :<
Is there any tweek to fix this? (That is, Keep people logged in even if they close the browser when they check the “Remember me” option.)
Sorry for my bad English.
If there is any quick fix, is much appriciated!
Thank you.
Attachments:
You must be logged in to view attached files.July 21, 2015 at 08:20 #69226LauraModeratorHello, will assign the ticket to a higher support lever who can help and advise you in your query.
Thanks! 🙂Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
July 21, 2015 at 18:54 #69315AndreiModeratorThis is in no way related to kleo, even the login widget that you’re using is provided by BuddyPress.
The thing is that the issue doesn’t come from either, maybe you have some other plugin that blocks or overrides this value. I recommend you to switch to the default wordpress theme and give a test.
I have tested and the remember me option works perfectly, even if I close and open my browser again.Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 21, 2015 at 20:31 #69327fuyutoParticipantHi, thank you for the reply and trying out.
Have you tried all the browsers?With Google Chome, it might be fine, but with safari and firefox, “Remember me” doesn’t work with your theme.
To show what I see and what others see, I recorded.(Your demo site. Not my site.)
Safari
https://www.youtube.com/watch?v=6bnh6nbw8xEFirefox
https://www.youtube.com/watch?v=OTE-FuhXN30Buddyboss
https://www.youtube.com/watch?v=tbEPpPAluVMFirst one is Kleo with Firefox.
Second one is Kleo with Safari.
Third one is what happends with Buddyboss theme.(I couldn’t find buddypress theme demo, so I tried with buddyboss theme which they provide.)With Kleo theme, the “remember me” doesn’t work.
With same testing condition, other theme with Buddypress works.
(Tried after clearing all cookies, same thing. Remember me doesn’t work. <not in the video>)Please see the video.
You set this as a “not a support question”… :<
Isn’t it possible to atleast give us a clue on what is happening, because with other buddypress theme demo, it works, and with kleo demo, it doesn’t work…?Thank you!
July 21, 2015 at 20:56 #69330AndreiModeratorThank you for your in-depth feedback about this issue, i have given a closer look and indeed, the ajax login had a typo in the remember me parameter.
We’ll cover this in our next update but meanwhile, to fix it, you will have to edit this two files:
wp-content/themes/kleo/assets/js/app.js
wp-content/themes/kleo/assets/js/app.min.jsSearch for the word “remember:” and change it to “rememberme:”, after doing so in both files please clear any site/browser cache that you might have and try again, this time it should work.
Secondly I given a look at modifying the auth expiration for the case where you want your login to be remembered ( because, unfortunately you can’t force the remember me option ), here is your code with a small modification:
COPY CODEadd_filter( 'auth_cookie_expiration', 'kleo_keep_me_logged', 10, 3 ); function kleo_keep_me_logged( $expire, $user_id, $remember ) { return 31556926; }
Please let me know how it went.
CheersHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 21, 2015 at 21:25 #69334fuyutoParticipantGreat!
Now it’s all fine.
And the second code is working fine too.
It remembers for 1 year.It’s all fixed :>
Thank you.July 21, 2015 at 22:58 #69336AndreiModeratorI’m glad I could help you.
CheersHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 27, 2015 at 11:52 #70172PirooParticipantI have exactly the same problem with Sweetdate, so I wanted to edit the app.js but couldn’t find it in that file.
Is it ok to ask in this kleo forum?
Thanks.August 30, 2015 at 02:37 #75301AndreiModeratorJust update your theme to the latest version which should have this patched.
CheersHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.