redpipe icon indicating copy to clipboard operation
redpipe copied to clipboard

cookies and session in setupRoutes method of Server class

Open fiorenzino opened this issue 7 years ago • 1 comments

In the setupRoutes method you force the creation of cookies: router.route().handler(CookieHandler.create()); and the use of session: SessionHandler sessionHandler = SessionHandler.create(LocalSessionStore.create(vertx));

Why?

If you use only json web token (JWT) - i.e. in angular applications - you don't need cookies and session.

fiorenzino avatar Mar 25 '18 21:03 fiorenzino

Yeah, this could be made optional.

FroMage avatar Mar 26 '18 09:03 FroMage