René's URL Explorer Experiment


Title: Allow configuring login cookie with an expiry duration · Issue #7301 · coder/code-server · GitHub

Open Graph Title: Allow configuring login cookie with an expiry duration · Issue #7301 · coder/code-server

X Title: Allow configuring login cookie with an expiry duration · Issue #7301 · coder/code-server

Description: What is your suggestion? Allow configuring an (optional) expiry age for the login cookie so that it persists beyond a browser session. This is handy for not re-entering the password every time. Possible change: https://github.com/coder/c...

Open Graph Description: What is your suggestion? Allow configuring an (optional) expiry age for the login cookie so that it persists beyond a browser session. This is handy for not re-entering the password every time. Pos...

X Description: What is your suggestion? Allow configuring an (optional) expiry age for the login cookie so that it persists beyond a browser session. This is handy for not re-entering the password every time. Pos...

Opengraph URL: https://github.com/coder/code-server/issues/7301

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow configuring login cookie with an expiry duration","articleBody":"## What is your suggestion?\n\nAllow configuring an (optional) expiry age for the login cookie so that it persists beyond a browser session. This is handy for not re-entering the password every time.\n\n**Possible change**:\nhttps://github.com/coder/code-server/blob/main/src/node/http.ts#L328\n\n```ts\n...\nreturn {\n  domain: getCookieDomain(url.host, req.args[\"proxy-domain\"]),\n  path: normalize(url.pathname) || \"/\",\n  sameSite: \"lax\",\n  // Load, if provided, max age for login cookie. 0 means it becomes a Session cookie (according to Express docs)\n  maxAge: getConfigCookieMaxAgeAsMilliseconds() || 0,\n}\n```\n\n## Why do you want this feature?\n\nI want to maintain my login status even after closing the browser (as the Cookie is currently session-only). Say keep the login cookie for a week or a month. Adding a max-age changes the cookie from `Session` to persistent for the given duration using Express' `maxAge` parameter ([docs](https://expressjs.com/en/api.html#res.cookie)).\n\n## Are there any workarounds to get this functionality today?\n\nNo, none directly. User can manually edit the cookie in Devtools\n\n## Are you interested in submitting a PR for this?\n\nI'm not that familiar with how to make new configuration argument and also how the config args are read (there's some middleware for `args` IIRC, but not sure how to use that). But I can give it a go, with some help.\n\nThe above given change should be roughly all that's needed, sans the config reading.\n","author":{"url":"https://github.com/nb-programmer","@type":"Person","name":"nb-programmer"},"datePublished":"2025-04-05T06:37:02Z","url":"https://github.com/coder/code-server/issues/7301"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e0aa9391-34bd-a522-d385-7cf6446009c5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBC4C:14562A:55C650:74141F:6B043E1B
html-safe-nonce2c4a867346dcf10f631d844f16570875a619c90e37218f554508217a0ba647ab
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzRDOjE0NTYyQTo1NUM2NTA6NzQxNDFGOjZCMDQzRTFCIiwidmlzaXRvcl9pZCI6IjQ1MzIzMzAxOTg3MTIyMDQ4MjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4f3074de42b76b077e73582852f8d1ba8684aa5ff7ed55e2958e8e77279529d3
hovercard-subject-tagissue:2973955595
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/code-server/7301/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0345ced1ab4b0f9c6959aa8a24e8b7bdd97224de57c0a9bb1f47ee40c03e2a25/coder/code-server/issues/7301
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0345ced1ab4b0f9c6959aa8a24e8b7bdd97224de57c0a9bb1f47ee40c03e2a25/coder/code-server/issues/7301
og:image:altWhat is your suggestion? Allow configuring an (optional) expiry age for the login cookie so that it persists beyond a browser session. This is handy for not re-entering the password every time. Pos...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenb-programmer
hostnamegithub.com
expected-hostnamegithub.com
None9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64
turbo-cache-controlno-preview
go-importgithub.com/coder/code-server git https://github.com/coder/code-server.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id172953845
octolytics-dimension-repository_nwocoder/code-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id172953845
octolytics-dimension-repository_network_root_nwocoder/code-server
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release06dc448a76fe4751ac1db26524aefa3aa3e889a8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/code-server/issues/7301#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcode-server%2Fissues%2F7301
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcode-server%2Fissues%2F7301
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=coder%2Fcode-server
Reloadhttps://github.com/coder/code-server/issues/7301
Reloadhttps://github.com/coder/code-server/issues/7301
Reloadhttps://github.com/coder/code-server/issues/7301
coderhttps://github.com/coder
code-serverhttps://github.com/coder/code-server
Codehttps://github.com/coder/code-server
Issues147 (147)https://github.com/coder/code-server/issues
Pull requests15 (15)https://github.com/coder/code-server/pulls
Discussionshttps://github.com/coder/code-server/discussions
Actionshttps://github.com/coder/code-server/actions
Projectshttps://github.com/coder/code-server/projects
Security and quality3 (3)https://github.com/coder/code-server/security
Insightshttps://github.com/coder/code-server/insights
https://github.com/coder/code-server
New issuehttps://github.com/login?return_to=https://github.com/coder/code-server/issues/7301
New issuehttps://github.com/login?return_to=https://github.com/coder/code-server/issues/7301
#8147https://github.com/coder/code-server/pull/8147
Allow configuring login cookie with an expiry durationhttps://github.com/coder/code-server/issues/7301#top
#8147https://github.com/coder/code-server/pull/8147
enhancementSome improvement that isn't a featurehttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/nb-programmer
nb-programmerhttps://github.com/nb-programmer
on Apr 5, 2025https://github.com/coder/code-server/issues/7301#issue-2973955595
https://github.com/coder/code-server/blob/main/src/node/http.ts#L328https://github.com/coder/code-server/blob/main/src/node/http.ts#L328
docshttps://expressjs.com/en/api.html#res.cookie
nb-programmerhttps://github.com/nb-programmer
enhancementSome improvement that isn't a featurehttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Apr 5, 2025https://github.com/coder/code-server/issues/7301#event-17138942652
https://github.com/harshbhx
harshbhxhttps://github.com/harshbhx
on Nov 17, 2026https://github.com/coder/code-server/issues/7301#issuecomment-6943217013
@code-asherhttps://github.com/code-asher
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/code-server/issues/7301
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/code-server/issues/7301
enhancementSome improvement that isn't a featurehttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.