[REMEMBER_ME] Not working

136 views
Skip to first unread message

sunda...@gmail.com

unread,
May 2, 2017, 12:29:19 PM5/2/17
to web2py-users
Hello,
This is actually my first question ever in a forum, and i hope it will be helpull. I am working in a company and the framework which i am using is web2py.
The "Remember me" is absolutly not working. i put that in my db.py :

auth.settings.long_expiration = 3600
auth.settings.remember_me_form = True

The checkbox is there but no reaction.

Please help meeeee


PS : sorry for my english, i am french ...

Anthony

unread,
May 2, 2017, 12:37:28 PM5/2/17
to web2py-users
On Tuesday, May 2, 2017 at 12:29:19 PM UTC-4, sunda...@gmail.com wrote:
Hello,
This is actually my first question ever in a forum, and i hope it will be helpull. I am working in a company and the framework which i am using is web2py.
The "Remember me" is absolutly not working. i put that in my db.py :

auth.settings.long_expiration = 3600

You have the long_expiration set to the same default time as the standard expiration (one hour), so you won't notice any different behavior.

Anthony

sunda...@gmail.com

unread,
May 3, 2017, 4:31:23 AM5/3/17
to web2py-users
Hello Anthony,

Yeah but even if i took it off, it doesnt work at all ... or even when i wrote 3600*24*30 ...

Paolo Valleri

unread,
May 3, 2017, 11:14:10 AM5/3/17
to web2py-users
which web2py version are you using?
would you post the html of the 'remember me' input tag

Paolo

Dave S

unread,
May 3, 2017, 4:05:32 PM5/3/17
to web2py-users


On Wednesday, May 3, 2017 at 8:14:10 AM UTC-7, Paolo Valleri wrote:
which web2py version are you using?
would you post the html of the 'remember me' input tag


One of the places where the browser's "Inspect Element" tool is very handy.
 
Paolo


/dps
 

sunda...@gmail.com

unread,
May 4, 2017, 5:10:22 AM5/4/17
to web2py-users

Hey Paolo,

I am using the web2py version 2.14.6 ... Do you think it may have some problem with ?

sunda...@gmail.com

unread,
May 5, 2017, 5:32:30 AM5/5/17
to web2py-users
Please help me

Paolo Valleri

unread,
May 5, 2017, 3:32:43 PM5/5/17
to web...@googlegroups.com
I've just tried welcome app with current master branch and 'remember me' worked well. Would you test it as well?
 
 Paolo

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/Z30XLTQzYi0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Anthony

unread,
May 5, 2017, 4:50:56 PM5/5/17
to web2py-users
After you log in via the remember me option, check the session cookie in the browser -- does it now have an "expires" attribute now?

Anthony

Anthony

unread,
May 5, 2017, 4:52:31 PM5/5/17
to web2py-users
Also, what exactly do you observe? After using the remember me option to log in, if you close the browser and then open it again, do you have to log in again?

sunda...@gmail.com

unread,
May 9, 2017, 4:02:56 AM5/9/17
to web2py-users
Hello Anthony,
i don't know where to check the expires attributs in the browser ...
Thanks

sunda...@gmail.com

unread,
May 9, 2017, 4:04:52 AM5/9/17
to web2py-users
Anhtony,

What i observe, is when i login with activing the 'remember me' radio box, and then after when i logout, and want to login again, it doesnt remember me , i need to write my mail and password again ...

Thank you

sunda...@gmail.com

unread,
May 9, 2017, 4:06:13 AM5/9/17
to web2py-users
 
 Paolo

To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.

sunda...@gmail.com

unread,
May 9, 2017, 4:06:49 AM5/9/17
to web2py-users
Hey,

No it does not working with the welcome app also
 
 Paolo

To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.

Anthony

unread,
May 9, 2017, 10:16:25 AM5/9/17
to web2py-users
On Tuesday, May 9, 2017 at 4:04:52 AM UTC-4, sunda...@gmail.com wrote:
Anhtony,

What i observe, is when i login with activing the 'remember me' radio box, and then after when i logout, and want to login again, it doesnt remember me , i need to write my mail and password again ...

Yes, of course, if you explicitly log out, you are logged out and must log in again. "Remember me" doesn't make the logout functionality stop working -- otherwise, what would be the point of logout in that case? "Remember me" converts the session cookie to a cookie that survives longer than the current browser session (i.e., the cookie will still be there if you close the browser and then open it again) -- so, you can remain logged in from one browser session to the next.

Anthony

sunda...@gmail.com

unread,
May 10, 2017, 8:33:28 AM5/10/17
to web2py-users
OWWWWW, so how do i call the functionnality that even when i logout, he remember the email i putted in the email form , and the password which goes with that emails ???

Thanks

Anthony

unread,
May 10, 2017, 3:08:22 PM5/10/17
to web2py-users
On Wednesday, May 10, 2017 at 8:33:28 AM UTC-4, sunda...@gmail.com wrote:
OWWWWW, so how do i call the functionnality that even when i logout, he remember the email i putted in the email form , and the password which goes with that emails ???

Are you saying you want to be able to log out, but the next time you visit the login page, it already has both your email and password filled in for you? What is the point of that? Why not just skip the logout in that case?

Anyway, you wouldn't want to do that because in that case, you would need to store the plain text password in a cookie in the user's browser or in your own database on the server, neither of which would be advisable from a security perspective.

Anthony

Nico de Groot

unread,
May 11, 2017, 1:40:40 AM5/11/17
to web2py-users
If you want this functionality you have to look outside the box/web2py.

You can maybe use autofill options in your browser or a password manager. Note that this is clientside.

Nico de Groot

sunda...@gmail.com

unread,
May 11, 2017, 4:15:12 AM5/11/17
to web2py-users

Thank you soo much guys for having answered ... :D do you have also the solution of sending mails ? since i passe from http to https, the mail isnt working ( even in the welcome app)
Reply all
Reply to author
Forward
0 new messages