summaryrefslogtreecommitdiffstats
path: root/README
blob: 13689555fb3bebe784143756c10266e02bda7811 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

Example CGI application which supports HTTP cookie sessions together
with login form and logout page. It is intentionally written in simple
perl with the CGI.pm module only used to parse POST values and HTTP
cookie values, to make it easy to tweak and explore.

If the script is placed to /var/www/app/app.cgi, the following Apache
httpd directive will enable it on http://server-name/application
location:

	ScriptAlias /application /var/www/app/app.cgi

The script uses HTTP cookie the-test-cookie to either have value
ok:login to mean user login is logged in, or value xx to mean the user
has logged out. Links to the login and logout pages are shown at the
bottom of the page.