AdaCore / AdaCore/aws

AWS.Session.Set_Lifetime should not be called by users

Open
#151 3 comments 0 reactions 1 assignee View on GitHub

@TurboGit is already working on this.

Since Jul 14, 2020.

Dominant language
Ada
Stars
162
Forks
45
PR merge metrics
No merged PRs in 30d

Description

A suggestion for documentation improvement. This cost me quite a while investigating why my users were logged out after 10min, despite me setting the lifetime to 1 day.

   procedure Set_Lifetime (Seconds : Duration);
   --  Set the lifetime for session data. At the point a session is deleted,
   --  reusing the session ID makes AWS.Status.Session_Timed_Out return True.
   --
   --  This subprogram should not be called directly by users. Instead, use
   --  AWS.Config.Set.Session_Lifetime. This is because starting the server will
   --  override any value previously set via Set_Lifetime, with the value set in the
   --  config.

Perhaps better would be to make this subprogram private, or even only in the body (I think it would work, but did not check in full details)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.