func logout(ctx *macaron.Context, s session.Store) { next := extractPath(ctx.Query(KEY_NEXT_PAGE)) s.Delete(KEY_TOKEN) ctx.Redirect(next) }