Apache::lonacc - Cookie Based Access Handler for Construction Area
Invoked (for various locations) by /etc/httpd/conf/loncapa_apache.conf:
PerlAccessHandler Apache::loncacc
This module enables cookie based authentication for construction area and is used to control access for three (essentially equivalent) URIs.
<LocationMatch "^/priv.*"> <LocationMatch "^/\~.*"> <LocationMatch "^/\~.*/$">
Whenever the client sends the cookie back to the server, if the cookie is missing or invalid, the user is re-challenged for login information.
This is part of the LearningOnline Network with CAPA project described at http://www.lon-capa.org.
This routine is called by Apache and mod_perl.
load POST parameters
store where they wanted to go (first url entered)
constructaccess($url,$ownerdomain)
See if the owner domain and name in the URL match those in the expected environment. If so, return two element list ($ownername,$ownerdomain). Else, return null string.