version 1.21, 2006/09/05 20:16:49
|
version 1.22, 2006/11/23 01:49:41
|
Line 49 sub handler {
|
Line 49 sub handler {
|
} |
} |
|
|
#check if cookie still valid |
#check if cookie still valid |
my $handle=$lonid->value; |
my $handle=&LONCAPA::clean_handle($lonid->value); |
$handle=~s/\W//g; |
|
my $lonidsdir=$r->dir_config('lonIDsDir'); |
my $lonidsdir=$r->dir_config('lonIDsDir'); |
if ((!-e "$lonidsdir/$handle.id") || ($handle eq '')) { |
if ((!-e "$lonidsdir/$handle.id") || ($handle eq '')) { |
$r->log_reason("Cookie $handle not valid", $r->filename); |
$r->log_reason("Cookie $handle not valid", $r->filename); |