feat: expire & prolong sessions
This commit is contained in:
@@ -34,6 +34,7 @@ func indexPageRoute(
|
||||
) http.HandlerFunc {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
session, err := getRequestSession(r, sessionSM)
|
||||
log.Printf("/ the session i got is %+v", session)
|
||||
if err != nil {
|
||||
log.Printf("/ session not found, means should render the login section %s", err)
|
||||
// TODO return error i guess
|
||||
|
||||
Reference in New Issue
Block a user