Re: Logout time

2023-08-09 Thread ivan harold
Maybe this will help, check out this code. def login (): login_time = time.time() def logout (): logout_time = time.time() #To get the number of seconds the user spent on the platform, #subtract login_time from logout_time On Monday, July 31, 2023 at 6:12:23 PM UTC+8 Prashanth Patelc wrote: >

Re: Logout time

2023-07-31 Thread Prashanth Patelc
Thank you all. Thank you # madhusudan (I got on idea through you shared the code) On Fri, Jul 28, 2023, 8:16 PM Madhusudhan Reddy wrote: > To get Logout time based on login time, > > login time = some thing > > logout time = login time + 8 hours > > use datetime timedelta module in python, > >

Re: Logout time

2023-07-28 Thread Ruby
I could barely understand what you meant, I believe you're looking for a way to set how to set a session cookie age, if that is the case, see SESSION_COOKIE_AGE If that is not the case, note that you also have `la

Re: Logout time

2023-07-28 Thread Madhusudhan Reddy
for better understanding [image: Screenshot from 2023-07-28 20-18-37.png] On Fri, 28 Jul 2023 at 20:15, Madhusudhan Reddy wrote: > To get Logout time based on login time, > > login time = some thing > > logout time = login time + 8 hours > > use datetime timedelta module in python, > > >>> CODE

Re: Logout time

2023-07-28 Thread Madhusudhan Reddy
To get Logout time based on login time, login time = some thing logout time = login time + 8 hours use datetime timedelta module in python, >>> CODE <<< from datetime import datetime, timedelta login_time = datetime.now() logout_time = login_time + timedelta(hours=8) >>> CODE <<< On Fr

Re: Logout time

2023-07-28 Thread Annadatha Rao
look for session : if session expires you have to log in again. It is the same for all apps irrespective of python. Thank you, Annadatha. On Fri, Jul 28, 2023 at 8:05 PM Prashanth Patelc wrote: > Hi all, > > How to get logout time based on login time in python? > > I'm storing hour in one colu

Re: Logout time

2023-07-28 Thread Madhusudhan Reddy
Please describe the problem properly bro. we are not understanding On Fri, 28 Jul 2023 at 20:05, Prashanth Patelc wrote: > Hi all, > > How to get logout time based on login time in python? > > I'm storing hour in one column > Eg ; hour > 8 > Based on 8 Calculate logout time > > My lo