Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Session TTL incorrect when date string is provided in config #19

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

crosa7
Copy link
Contributor

@crosa7 crosa7 commented Oct 6, 2023

Description

  • When passing for example '1 day' in SESSION_LIFETIME it would result in a wrong session ttl. The result would be the current time + the timestamp of tomorrow.

  • Example: Let's consider the current timestamp: 1696600085 and the timestamp of tomorrow: 1696682885. The session ttl was resulting in: 3393282970

@crosa7 crosa7 requested a review from mychidarko October 6, 2023 13:51
@crosa7 crosa7 force-pushed the fix-session-lifetime-incorrect-when-string-provided branch 2 times, most recently from 6fd732a to 337bab0 Compare October 6, 2023 14:51
@crosa7 crosa7 force-pushed the fix-session-lifetime-incorrect-when-string-provided branch from 337bab0 to 6178ac6 Compare October 6, 2023 14:53
Copy link
Member

@mychidarko mychidarko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can merge if it's all good

@crosa7 crosa7 merged commit 8844171 into main Oct 6, 2023
10 checks passed
@crosa7 crosa7 deleted the fix-session-lifetime-incorrect-when-string-provided branch October 6, 2023 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants