On Fri, 16 Jan 2004 13:44:16 -0200, "Vilmar Brazão de Oliveira" <te***@teste.teste.teste> wrote:
in my routines this runs well like:
<%
if Session("logado") <> "sim" then
'Rotina de verificação de sessão do usuário só funciona dentro das
tags<body></body>
%>
<!--#include file="controle_sessao.asp" -->
<%End If%>
bye
What most of the responses want to emphasise is that, even though the logic will work and only the 'correct' page will
be displayed, all of the includes will be read and processed before anything else happens...If those pages are large
and/or contain lots of processor intensive or memory heavy stuff, you can run into real resource depletion problems.
The faq citation from Tom B :
http://www.aspfaq.com/show.asp?id=2042
has, at the end, a discussion of using Server.Execute - It will help, if it can be employed in your situation.
hth