1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-23 04:47:02 +00:00

remove some examples learning content as they are exist on the wiki itself now

Former-commit-id: 8c69be5bf8ca21eb0e405ca5ad8431ceb1c2511e
This commit is contained in:
Gerasimos (Makis) Maropoulos
2019-07-23 17:47:28 +03:00
parent 722724ea96
commit 4caf8d7d9b
7 changed files with 10 additions and 440 deletions

View File

@@ -78,7 +78,7 @@ func (s *Sessions) Start(ctx context.Context, cookieOptions ...context.CookieOpt
cookieValue := s.decodeCookieValue(GetCookie(ctx, s.config.Cookie))
if cookieValue == "" { // cookie doesn't exists, let's generate a session and add set a cookie
sid := s.config.SessionIDGenerator()
sid := s.config.SessionIDGenerator(ctx)
sess := s.provider.Init(sid, s.config.Expires)
sess.isNew = s.provider.db.Len(sid) == 0