ad_second_to_last_visit_utSource code:
set headers [ns_conn headers]
set cookie [ns_set get $headers Cookie]
if { [regexp {second_to_last_visit=([^;]+)} $cookie match second_to_last_visit] } {
return $second_to_last_visit
} else {
return ""
}