You are caught in a loop.

If the variable does not exist you send them to login.cfm the problem is 
login.cfm still checks for the variables and cflocations to itself.

You need to check what page you are on and then check for the session variable.

At 02:38 PM 8/29/2000 +0000, you wrote:
>What causes an "Object Moved" error?
>
>I am making modifications to my application.cfm file (to check for the
>existence of session variables, etc.), and sometimes I receive an html file
>that states "Object Moved -- This document may be found here (with "here"
>linking to the page I was just trying to display)...
>
>Here's what I have...
>
><body>
><CFAPPLICATION NAME="3i"
>     CLIENTMANAGEMENT="Yes"
>     SESSIONMANAGEMENT="Yes"
>     SETCLIENTCOOKIES="Yes"
>     SESSIONTIMEOUT="2"
>     APPLICATIONTIMEOUT="2"
>     CLIENTSTORAGE="registry">
>
><cfif isdefined("session.sessid") AND isdefined("session.userid")>
><cfquery name="sesscheck" datasource="CF_3IS" maxrows="1">
>select web_profile.db_app_std.chk_ses('#session.sessid#') AS result from
>dual
></cfquery>
><cfset session.result=#sesscheck.result#>
><cfelse>
><cflocation url="login.cfm" addtoken="No">
></cfif>
>
></body>
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>Share information about yourself, create your own public profile at
>http://profiles.msn.com.
>
>------------------------------------------------------------------------------
>Archives: http://www.mail-archive.com/[email protected]/
>To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or 
>send a message to [EMAIL PROTECTED] with 'unsubscribe' in 
>the body.

--
Nick McClure            [EMAIL PROTECTED]
Technical Director      859.245.9656
squareFish Media        www.squareFish.com

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to