alexedwards / scs

HTTP Session Management for Go
MIT License
2.13k stars 166 forks source link

Updating legacy code #102

Closed rizzla22 closed 1 year ago

rizzla22 commented 3 years ago

I running into a number of problems with methods not being found or instantiated but cant find any documentation on how to resolve or what the updates where. these are just a sample, have you any tips ?

var session *scs.Manager Throws error: Manager not declared by package scs

session = scs.NewCookieManager("demo") Throws error: NewCookieManager not declared by package scs

var session, _ = sessionStore.Load(r.Request) Throws error: cannot use r.Request (variable of type *http.Request) as context.Context value in argument to sessionStore.Load: missing method Deadline

TheWashiba commented 1 year ago

I think this can be closed @alexedwards