Hi Roberto,
If the user needs to be logged in to view the page, then rather just tick the "must be logged in" option on the advanced tab. That's a lot easier than entering
p_web.GetSessionValue('user') <> ''
And it'll work better since it has built-in functionality to redirect users to the login screen.
If you want a fast way to set this, go to the Properties of the WebHandler procedure, and you can select the "must be logged in" procedures on a list.
Cheers
Bruce