2.19.1 redis sessions problem

127 views
Skip to first unread message

Jose C

unread,
Mar 28, 2020, 6:30:11 AM3/28/20
to web2py-users
Just started testing version 2.19.1 (prior to upgrading) with py3.6 and it appears that when sessions are stored in redis, a new session is being created each time the login is submitted which then prevents a session from logging in. 

This issue was discussed in https://groups.google.com/forum/#!msg/web2py/z1ee025ghRU/qByNuEjGAgAJ  and Jim S found a workaround with the .decode function which worked on py3 but not on py2 (and which I've been using live).  It looks like the redis session code has been refactored in 2.19.1 to remove all the decodes but I can't get it to work correctly.

Can anyone confirm whether they have this issue when trying to login using redis sessions in 2.19.1 (with py3)?  If confirmed, I'll file a bug report.

Thanks,

Jose

Jim S

unread,
Mar 29, 2020, 6:38:27 PM3/29/20
to web2py-users
FWIW - I've abandoned redis for sessions.  I can't get it to work reliably and no one seems interested in fixing it.  I submitted some patches but they were rejected.  So, I've moved my sessions into my database.  Not what I wanted to do, but at least that works reliably.  Sorry to be negative about this, it just seems it isn't a priority for the project.

-Jim

Massimo Di Pierro

unread,
Mar 30, 2020, 12:39:10 AM3/30/20
to web2py-users
Sorry. We should fix this. Will look into it asap.

Joe Barnhart

unread,
Jun 10, 2020, 12:03:39 PM6/10/20
to web2py-users
Yep.  I just confirmed the errant behavior with web2py 2.20.4 and python 3.8.2.  If reds sessions are enabled the logon never completes.

-- Joe B.

Jose C

unread,
Jun 10, 2020, 2:48:34 PM6/10/20
to web...@googlegroups.com
Thanks for confirming...  issue created: https://github.com/web2py/web2py/issues/2330


Kevin Keller

unread,
Jun 18, 2020, 5:55:34 AM6/18/20
to web2py-users
Is there any update on this or will we not be able to use redis again? ;)

I see there is a redis pull request from last year too. 
Reply all
Reply to author
Forward
0 new messages