summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorJan Pazdziora <jpazdziora@redhat.com>2014-01-07 23:10:58 -0500
committerJan Pazdziora <jpazdziora@redhat.com>2014-01-07 23:10:58 -0500
commit0597e0ca507e70d2859010ae9bcff5e8cdd2293b (patch)
tree737eda682bed69cfe1517a14ab4eac24cc21409b /README
parent30be3f9accf36e363f9bd479f5527261ba44f0c5 (diff)
downloadCGI-sessions-0597e0ca507e70d2859010ae9bcff5e8cdd2293b.tar.gz
CGI-sessions-0597e0ca507e70d2859010ae9bcff5e8cdd2293b.tar.xz
CGI-sessions-0597e0ca507e70d2859010ae9bcff5e8cdd2293b.zip
Application which allows cookie-based login and logout.
Diffstat (limited to 'README')
-rw-r--r--README17
1 files changed, 17 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..1368955
--- /dev/null
+++ b/README
@@ -0,0 +1,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.
+