mirror of
https://github.com/rwf2/Rocket.git
synced 2024-12-30 14:22:40 +00:00
16cb7297ab
This commit includes the following additions: * A `session` example was added. * `Config::take_session_key` was removed. * If a `session_key` is not supplied, one is automatically generated. * The `Session` type implements signed, encrypted sessions. * A `Session` can be retrieved via its request guard.
16 lines
453 B
Handlebars
16 lines
453 B
Handlebars
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width" />
|
|
<title>Rocket: Session Example</title>
|
|
</head>
|
|
<body>
|
|
<h1>Rocket Session Example</h1>
|
|
<p>Logged in with user ID {{ user_id }}.</p>
|
|
<form action="/logout" method="post" accept-charset="utf-8">
|
|
<input type="submit" name="logout" id="logout" value="logout" />
|
|
</form>
|
|
</body>
|
|
</html>
|