Help login() session always expire on new migrated apache server

12 views
Skip to first unread message

dk.danny...@gmail.com

unread,
Nov 27, 2017, 10:43:49 PM11/27/17
to Django users
Hello,

I used django login() in some code and it worked now in current server.

Odd enough that in new server (migrated), the login session gone when i check with @login_required. Keep asking to login.

The server have the same apache config with old server. Please help. Thank you

谢磊

unread,
Nov 28, 2017, 7:27:02 AM11/28/17
to Django users

what's your session engine? 
在 2017年11月28日星期二 UTC+8上午11:43:49,dk.danny...@gmail.com写道:

Jason

unread,
Nov 28, 2017, 7:41:41 AM11/28/17
to Django users
and is your db on the same machine as the app server?  If not, did you include the django_session table when moving the db?
Reply all
Reply to author
Forward
0 new messages