version 1.11, 2007/09/29 02:09:50
|
version 1.12, 2007/10/01 21:52:50
|
Line 87 sub handler {
|
Line 87 sub handler {
|
my $extra_env = &sso_check(\%data); |
my $extra_env = &sso_check(\%data); |
|
|
if (!$data{'role'}) { |
if (!$data{'role'}) { |
# check for exisiting valid session |
my $handle = &Apache::lonnet::check_for_valid_session($r); |
my %cookies=CGI::Cookie->parse($r->header_in('Cookie')); |
if ($handle) { |
my $lonid=$cookies{'lonID'}; |
|
my $handle; |
|
if ($lonid) { |
|
$handle=&LONCAPA::clean_handle($lonid->value); |
|
} |
|
if ($lonid |
|
&& -e $r->dir_config('lonIDsDir').'/'.$handle.'.id' |
|
&& $handle ne '') { |
|
&Apache::lonnet::transfer_profile_to_env($r->dir_config('lonIDsDir'), |
&Apache::lonnet::transfer_profile_to_env($r->dir_config('lonIDsDir'), |
$handle); |
$handle); |
if ($env{'request.course.id'}) { |
if ($env{'request.course.id'}) { |