Replies: 1 comment 1 reply
-
There are pretty severe security consequences to having this in a production app. If a bad guy knows your session id he's you. So if an admin logs into a session sent to them by a bad guy, that bad guy is now an admin on your site. It's called a session fixation attack. Your webserver will also log all those session ids, and so anyone who gets into your logs is effectively automatically logged in as anyone who's link they click. This is a big problem if you use analytics tools because first, all urls are unique, and second, if a user of the analytics tool can view any urls, they can become the user who requested that url. An alternate way you can get multiple sessions in the same app by pointing several sub-domains at your app, deleting cookies for the whole domain, and logging into each of those sub-domains. (like pointing If you have your own session store that uses ids (instead of the mojo default which just shoves everything in json in a signed cookie) you could recover a session id from a get parameter in a hook when |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
Did anyone implement keeping session id in URL? I need several different sessions for prototyping, and I'd prefer to put id to URL rather than to cookie, just for testing purposes and for ability to share session by sending URL.
Beta Was this translation helpful? Give feedback.
All reactions