Skip to content

Make session idle timeout configurable via SESSION_LIFETIME env#335

Open
level09 wants to merge 2 commits into
mainfrom
session-lifetime-env
Open

Make session idle timeout configurable via SESSION_LIFETIME env#335
level09 wants to merge 2 commits into
mainfrom
session-lifetime-env

Conversation

@level09
Copy link
Copy Markdown
Collaborator

@level09 level09 commented May 11, 2026

Summary

  • PERMANENT_SESSION_LIFETIME is currently hardcoded to 3600s. This makes it configurable via the SESSION_LIFETIME environment variable, defaulting to 3600 (no behavior change for existing installs).
  • Lets operators tune the idle session timeout (Flask refreshes the cookie/Redis TTL on every request, so this effectively controls idle expiry) without code changes.

Test plan

  • Unset SESSION_LIFETIME → sessions expire after 3600s of inactivity (unchanged default).
  • Set SESSION_LIFETIME=300 in .env → sessions expire after 5 min of inactivity.
  • Service starts cleanly with the env var present and absent.

@level09 level09 self-assigned this May 11, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 11, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 35e99c77-ece0-425c-89ff-0aef9bc14462

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch session-lifetime-env

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@apodacaduron apodacaduron left a comment

Choose a reason for hiding this comment

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

Simple change works as intended

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.

2 participants