u/OS2DEV

▲ 2 r/rails

Start an empty session to get anonymous user id (`session.id`) ?

Seems that RoR can't start a session unless you write something to it? But what if I simply need an anonymous user id via `session.id`?

My use case is creating guest items that only the current session owner (user) can later access.

I'm coming from Laravel, where you can get an empty session whenever you need it.

Sounds like a contribution opportunity.

reddit.com
u/OS2DEV — 15 hours ago