From: David C. <da...@ne...> - 2002-12-01 17:59:24
|
Hi, I'm trying to do something like this -- [[ sessionid = cookie.get( 'session' ) session_dict = session.get( sessionid ) if session_dict: { username = session_dict[ 'username' ] } else: { redirect.externalRefresh( 'index.spy' ) } ]] -- the problem is that later in my page, I make reference to username. If the session dictionary isn't present, there is no username, so I get an exception. Is it possible to "bail out" of a spyce page by redirecting without processing the rest of it? Thanks, David. |