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

SSR Sessions 🔥 #156

Closed
Ethosa opened this issue Oct 1, 2023 · 0 comments
Closed

SSR Sessions 🔥 #156

Ethosa opened this issue Oct 1, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request ssg ssr

Comments

@Ethosa
Copy link
Contributor

Ethosa commented Oct 1, 2023

Sessions with timeout for SSR

serve "127.0.0.1", 5000:
  var globalSessionId = ""
  "/":
    var session = startSession(10)  # timeout in seconds
    globalSessionId  = session.id
    return session.id
  "/closeGlobalSession":
    closeSession(globalSessionId)
    return "closed, try to return to '/'"
@Ethosa Ethosa added enhancement New feature or request ssg ssr labels Oct 1, 2023
@Ethosa Ethosa self-assigned this Oct 1, 2023
@Ethosa Ethosa closed this as completed Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ssg ssr
Projects
None yet
Development

No branches or pull requests

1 participant