blob: 083fea246d13ce846eb84d58a2f3ee340d0d712c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
Web Session Exercise
====================
This is an exercise designed to help illustrate how sessions can facilitate
authentication on the web. It was written for one of my students at [The
Firehose Project](http://www.thefirehoseproject.com/).
Fill in the route blocks in `app.rb` such that POSTing the accepted user
credentials to '/' log the user in using the session, and display the logged in
template.
With `Rack::Session::Cookie`, the session is accessible via a hash called
`session`.
## Installing
Run
$ sh setup.sh
to install the required gem dependencies.
## Running
Run
$ make
to start up the development server and see changes to the app.
## Testing
Run
$ rake
to run the app's tests.
## License
Licensed under the MIT License. See the included LICENSE file.
|