ad_partner_from_cookie

one of the documented procedures in this installation of the ACS
Usage:
ad_partner_from_cookie
What it does:
Returns name of template or empty string from the ad_partner cookie
Defined in: /web/philip/tcl/ad-partner-defs.tcl

Source code:


    set headers [ns_conn headers]
    set cookie [ns_set get $headers Cookie]
    if { [regexp {ad_partner=([^;]+)} $cookie {} template_name] && ![empty_string_p $template_name] && [string compare $template_name "expired"] != 0 } {
	return $template_name
    } else {
	return [ad_parameter CookieDefault partner]
    }



philg@mit.edu