feat: expire & prolong sessions

This commit is contained in:
efim
2023-12-01 04:09:17 +00:00
parent e0bd77fe3b
commit cc33c3f742
3 changed files with 34 additions and 6 deletions

View File

@@ -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