# Simple Login / Logout examples using web-server

**URL:** <https://racket.discourse.group/t/simple-login-logout-examples-using-web-server/2721>\
**Category:** Questions & Answers\
**Created:** [February 15, 2024, 3:34am UTC](https://racket.discourse.group/t/simple-login-logout-examples-using-web-server/2721 "2024-02-15T03:34:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![markshead](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/markshead/32/1334_2.png) [@markshead](https://racket.discourse.group/u/markshead)\
**Post date:** [February 15, 2024, 3:34am UTC](https://racket.discourse.group/t/simple-login-logout-examples-using-web-server/2721/1 "2024-02-15T03:34:45Z")

</div>

I've been looking for simple examples of login and logout that user Racket's web-server. I've looked at [Racket Stories](https://github.com/soegaard/web-tutorial/tree/master/listit2) and [Koto](https://koyoweb.org/). Are there any other simple examples I should look at? It doesn't have to be production level code. I'm wanting to just see how different people get the parts to work together.

---

<div class="post-metadata">

**Author:** ![spdegabrielle](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/spdegabrielle/32/95_2.png) [@spdegabrielle](https://racket.discourse.group/u/spdegabrielle)\
**Post date:** [February 27, 2024, 12:33pm UTC](https://racket.discourse.group/t/simple-login-logout-examples-using-web-server/2721/2 "2024-02-27T12:33:13Z")

</div>

Sorry @markshead i keep meaning to respond but I am short of time at the moment

i think another example is in the Racket Package Catalog front web front end:

> <https://github.com/racket/racket-pkg-website/blob/master/src/users.rkt>

I want to do an appendix to [Continue: Web Applications in Racket](https://docs.racket-lang.org/continue/index.html) where the stepwise methodology continues through

1. Making page elements and whole pages dependent on a variable
2. Setting that variable for a user
3. Adding a login form (set cookie to confirm logged in - do we still use cookies ?)
4. Adding authenticatiob to a users table to db
5. OpenID/oauth2 where validation is passed on to another service (I think racket stories does this?)
