my website works pretty good on my computer (localhost), but since I uploaded it to a webhosting I am facing new and new problems. Most of them I have already solved, but there is one I do not know how to deal with.
Problem is, that when user tries to login, the user is not logged in. Or maybe he is, but he does not stay like that. I checked database and last_login state is set correctly, but there is probably some problem with sessions or anything else.
And if session.save_handler is set to memcache, that’s probably the problem. memcache likes to randomly garbage collect sessions when memory is full, so it will login and after the redirect you’ll randomly have a new session.