#2 ✓resolved
davesag (at gmail)

Implement two layers of logout.

Reported by davesag (at gmail) | September 9th, 2010 @ 09:28 PM | in v1.0

When a user logs out the application must remember their name to enable a fast login.

When a visitor logs in pop the username into a cookie.

When the user logs out leave that cookie unless they logout again.

We now have three visitor types:
Guest - No session, no name cookie. Limited to public pages only.
Unverified User - No session, there is a username. Limited to public pages, pre-populated username in login form, and offers a "If you are not {username} click here." which links to /logout
Verified User - Active Session, place username in cookie (1 month expiry), access to /in/*

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Frank is intended to be a very simple but feature complete web-app built on top of Sinatra that provides simple user login, password reminder, and user email verification with support for simple roles. It is intended to be used by other developers as both a well documented example of Sinatra in use, and a starting point for others wishing to implement simple web apps very quickly.

Shared Ticket Bins

People watching this ticket