diff options
| author | Teddy Wing | 2015-12-08 00:51:14 -0500 |
|---|---|---|
| committer | Teddy Wing | 2015-12-08 00:51:14 -0500 |
| commit | 6b352f5a238524f9031c499191a476debecbc9fb (patch) | |
| tree | e5741f32f27c0ac5d98bbedfe3af2f85d54be728 /test | |
| parent | 28770a5143bb5b48389d5ad4ce235625c12f1056 (diff) | |
| download | Ruby-Web-Sessions-Exercise-6b352f5a238524f9031c499191a476debecbc9fb.tar.bz2 | |
app.rb: Add basic session handling
When logging in with the correct credentials, set a session variable and
redirect to the login page. Custom display for a user who is logged in.
Add a logout method to delete the session variable, thus logging out the
user.
Use Rack's built-in session cookies to facilitate session management.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
