hai provato in debug a vedere se passa dentro qui:

if session("visitatore") = "" then
.....