Try

<cfif NOT session.authenticated and url.furl neq 
"/content-pages/retailer-login">
    <cflocation url="/content-pages/retailer-login">
<cfelse>
    <nj:display>
</cfif>

Otherwise it will be an endless loop

On Friday, June 15, 2012 2:09:07 AM UTC-4, Retailspace Australia wrote:
>
>
> Code:
>
> <cfif NOT session.authenticated>
>     <cflocation url="/content-pages/retailer-login">
> <cfelse>
>     <nj:display>
> </cfif>
>
>
>
> Firefox reports:
>
> The page isn't redirecting properly
>       
>           Firefox has detected that the server is redirecting the request 
> for this address in a way that will never complete.
>
> On Friday, June 15, 2012 3:58:45 PM UTC+10, Blair McK wrote:
>>
>> I don't understand why you aren't able to do it in index.cfm. Are you 
>> getting an error?
>>
>> Blair
>>
>> On Fri, Jun 15, 2012 at 3:37 PM, Retailspace Australia <
>> [email protected]> wrote:
>>
>>>
>>> Thanks Blair - I tried the index.cfm but wasn't able to do a cflocation 
>>> to the content page I created using Farcry.
>>>
>>> I have a param called session.IsAuthenticated and the default is "false".
>>>
>>> When a user hits our page I test that variable and if it's false I want 
>>> it to redirect them to our login page which is 
>>> www.website.com/content-pages/retailer-login 
>>>
>>> What's the best way to approach that ?
>>>
>>>
>>>
>>>
>>> On Friday, June 15, 2012 3:13:32 PM UTC+10, Blair McK wrote:
>>>>
>>>> FarCry has a lot of that functionality built in, but if you've already 
>>>> done all the authentication logic and login page, you could simply put the 
>>>> check in application.cfc onRequestStart or the index.cfm.
>>>>
>>>> Blair
>>>>
>>>> On Fri, Jun 15, 2012 at 3:09 PM, Retailspace Australia <
>>>> [email protected]> wrote:
>>>>
>>>>>
>>>>> I have a member's only website in Farcry - when they hit the URL if
>>>>> they aren't authenticated they are presented with a login screen.
>>>>>
>>>>> Just wondering what would be the best file to put my logic in to test
>>>>> for authentication and redirect them to a login page I've created
>>>>> within Farcry.
>>>>>
>>>>> --
>>>>> You received this message cos you are subscribed to "farcry-dev" 
>>>>> Google group.
>>>>> To post, email: [email protected]
>>>>> To unsubscribe, email: 
>>>>> farcry-dev+unsubscribe@**googlegroups.com<farcry-dev%[email protected]>
>>>>> For more options: 
>>>>> http://groups.google.com/**group/farcry-dev<http://groups.google.com/group/farcry-dev>
>>>>> ------------------------------**--
>>>>> Follow us on Twitter: http://twitter.com/farcry
>>>>
>>>>
>>>>  -- 
>>> You received this message cos you are subscribed to "farcry-dev" Google 
>>> group.
>>> To post, email: [email protected]
>>> To unsubscribe, email: [email protected]
>>> For more options: http://groups.google.com/group/farcry-dev
>>> --------------------------------
>>> Follow us on Twitter: http://twitter.com/farcry
>>>
>>
>>

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Reply via email to