What can cause a session to expire on server side? I have been facing the session expiration problem. I have already checked the 'expiration' field of the session.
What are all the possible cases that could lead to server expiration on server?
Session data just after log in:
{'_session_hash': 'ea152f552f6c88e598824b393cc650a6',
'_user_agent': {'is_mobile': False, 'is_tablet': False},
'auth': <Storage {'hmac_key': 'd4eea339-34f0-4e81-a8f5-54a68e8da363', 'user_groups': {1672: 'user_3747'}, 'expiration': 999999999, 'last_visit': datetime.datetime(2013, 11, 18, 15, 4, 6, 891109), 'user': <Row {some-data-here}>}>,
'login_method': 'android_google',
'mversion': '38'}
And it expires on its own after some time to:
{'_auth_next': '/app_init_data.json',
'_formkey[login]': '426176a2-ad70-4af5-a146-0e7b16874d97',
'_formkey[register]': 'f7ca1d03-2f5f-4d76-997b-1d7801b70d82',
'_session_hash': '0e151d2a1dbb7242190fab4eaaf4a5d5',
'_user_agent': {'is_mobile': False, 'is_tablet': False},
'flash': ''}
I use the following function for login: