How should I handle session timeouts when the client's system time is in the future? -
session timeouts work expected when clients' local time in sync utc server, if client has local time set time in future, receive session timeout messages , logged out of site.
what possible solutions problem used other developers? sure not first person have problem, cannot find much info on online.
thanks worked out. before, setting user's session expire @ time, 15 minutes after lastly activity. however, expire date set based on utc server's time, not user's local time. when client's local date/time compared expire date/time cause timeout users local time more 15 minutes in future.
i fixed problem setting expire time amount of time (15 minutes) rather actual date/time of expiration. way no matter user's local time is, timeout 15 minutes after lastly activity.
time session-timeout future
No comments:
Post a Comment