NAME

Apache::lonacc - Cookie Based Access Handler for Construction Area


SYNOPSIS

Invoked (for various locations) by /etc/httpd/conf/loncapa_apache.conf:

 PerlAccessHandler       Apache::loncacc


INTRODUCTION

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.


HANDLER SUBROUTINE

This routine is called by Apache and mod_perl.


OTHERSUBROUTINES

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.