Programming

How does a tor website can keep you logged

Started by MyHiddingAccount · Mar 8, 2026

#11513
How from one page to another I am still logged into my account ? How can I do this for my own tor website ? Are there some sort of cookies there ? I'm using golang too.
#11516
↳ Replying to @MyHiddingAccount
learn about cookies and sessions, check youtube
#11518
↳ Replying to @deleted-dd5f43ed
For sensitive things, sessions are better, because the user can't change a session of "logged_in" to something else.

Cookies can work in something like user preferences, e.g, the cookie of "background_color" can be set to "red" and it can be changed by the user.
#11520
↳ Replying to @AdamNeersan
yes i understand but you need to understand XSS and html injections, xss is enough to stole sessions of users
#11521
↳ Replying to @MyHiddingAccount
It's cookies and sessions. It's the same way a normal site does it. Only if you click new identity on Tor Browser it'll delete the session so you'll have to log back in
#11522
↳ Replying to @MyHiddingAccount
is there any way to contact u on TZ ? tx