--- loncom/auth/lonacc.pm 2006/04/13 20:47:39 1.77 +++ loncom/auth/lonacc.pm 2006/06/02 19:38:21 1.78 @@ -1,7 +1,7 @@ # The LearningOnline Network # Cookie Based Access Handler # -# $Id: lonacc.pm,v 1.77 2006/04/13 20:47:39 albertel Exp $ +# $Id: lonacc.pm,v 1.78 2006/06/02 19:38:21 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -150,8 +150,10 @@ sub handler { $handle=~s/\W//g; } + my ($sso_login); if ($r->user && (!$lonid || !-e "$lonidsdir/$handle.id" || $handle eq '') ) { + $sso_login = 1; my $domain = $r->dir_config('lonDefDomain'); my $home=&Apache::lonnet::homeserver($r->user,$domain); if ($home !~ /(con_lost|no_such_host)/) { @@ -161,6 +163,10 @@ sub handler { } } + if ($sso_login) { + &Apache::lonnet::appenv('request.sso.login' => 1); + } + if ($r->dir_config("lonBalancer") eq 'yes') { $r->set_handlers('PerlResponseHandler'=> [\&Apache::switchserver::handler]);