Hacker News new | ask | show | jobs
by lucb1e 463 days ago
I didn't know what you meant so I looked up micro frameworks. Wikipedia has a page named Microframework and lists 23 examples. I don't have time to dive into each of them and most items aren't links (so not sure how relevant they are), but

- I know Flask and it has sessions

- It also lists three frameworks for PHP, which has sessions built into the language (session_start() is what I use in any project that needs a session system)

- Expressjs is one of the few others with a Wikipedia page. Looking into that, it says it requires some middleware for having sessions, which seems not only well-supported, but there is also an include from the authors of Expressjs themselves called expressjs-sessions. It's technically not in the framework, but the authors provide it and clearly keep it in mind when developing the framework so you don't have to DIY that

I can't conclude this isn't a common feature in microframeworks :p

1 comments

Most of the options you're talking about are client side sessions and even then are limited. That's certainly the case in Flask, FastAPI, Starlette.

Compare that to say, Django, Laravel, etc.