2019-04-24 21:52:08 +00:00
|
|
|
package session
|
|
|
|
|
2022-03-02 06:40:26 +00:00
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
2021-11-11 09:13:32 +00:00
|
|
|
const (
|
|
|
|
testDomain = "example.com"
|
2022-03-02 06:40:26 +00:00
|
|
|
testExpiration = time.Second * 40
|
2021-11-11 09:13:32 +00:00
|
|
|
testName = "my_session"
|
|
|
|
testUsername = "john"
|
|
|
|
)
|
2020-05-02 16:20:40 +00:00
|
|
|
|
2021-11-11 09:13:32 +00:00
|
|
|
const (
|
|
|
|
userSessionStorerKey = "UserSession"
|
|
|
|
randomSessionChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_!#$%^*"
|
|
|
|
)
|