# `Imison.Web.SessionController`
[🔗](https://github.com/elpikel/imison/blob/v0.1.0/lib/imison/web/session_controller.ex#L1)

Signs in to the dashboard and out of it, at `<path>/login` and `<path>/logout`
of a dashboard mounted with `Imison.Web.Router.imison_dashboard/2`.

A plain controller rather than a LiveView, because only a plain request can
write the host's session cookie. The route's private `:imison_name` and
`:imison_dashboard_path`, set by the router, name the instance whose login is
checked and the dashboard to return to.

Repeated failed sign-ins are slowed down: while a wait is running, or when
the failed sign-ins can't be read, a sign-in is refused before its
credentials are checked.

# `create`

```elixir
@spec create(Plug.Conn.t(), map()) :: Plug.Conn.t()
```

# `delete`

```elixir
@spec delete(Plug.Conn.t(), map()) :: Plug.Conn.t()
```

# `new`

```elixir
@spec new(Plug.Conn.t(), map()) :: Plug.Conn.t()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
