markbates / markbates/goth

StoreInSession calls Store.New creating a new session every time

Open
#527 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
6.6k
Forks
631
PR merge metrics
No merged PRs in 30d

Description

err := gothic.StoreInSession("test", "test-value, req, res)
if err != nil {
fmt.Println("error storing client in session: ", err)
return
}

val, err := GetFromSession("test", req)
if err != nil {
fmt.Println("error retrieving value for 'test' that was just set: ", err)
}

// GetFromSession fails 100% of the time

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by locating the StoreInSession and Store.New entry points, then reproduce the failure with the Go snippet in the issue. Trace how the session store is created and used by GetFromSession; done means a value stored by StoreInSession can be retrieved from the same request session.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authentication, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.