Hi Seona

just as a friendly tip
instead of
<cflocation url="">#session.srcdoc#".....
i'd do
<cflocation url="">can save a lot of time having a myself in fuesebox over using self

M@


On 8/23/06, Seona Bellamy <[EMAIL PROTECTED]> wrote:
*slaps forehead* Oh yeah... Sometimes you just don't see the forest for the trees...




On 23/08/06, Andrew Scott < [EMAIL PROTECTED]> wrote:

What version of cf are you using?

 

If you're using CFMX have a look at the cflogin tags

 

 

Senior Coldfusion Developer

Aegeon Pty. Ltd.

www.aegeon.com.au

Phone: +613  8676 4223

Mobile : 0404 998 273

 


From: cfaussie@googlegroups.com [mailto: cfaussie@googlegroups.com] On Behalf Of Seona Bellamy
Sent: Wednesday, 23 August 2006 3:21 PM
To: CFAussie
Subject: [cfaussie] <cflocation> confusing me

 

Hi guys,

I've trying to adapt some code I found for checking whether a user is logged in or not, and it's got me very confused over some of the results I'm getting.

The code that I'm using is a custom tag as follows:
<cfif val(caller.userID) is 0>
    <cfset session.srcdoc = attributes.srcdoc>
    <cflocation url="" addtoken="No">
</cfif>

I'm calling it via the following line:
<cf_checkLogin srcdoc="#xfa.newtopic#&forumID=#forumID#">

So if the user isn't logged in, they will be shunted to the login page. Theoretically, then, by putting the following at the end of the login functionality, the user should be returned to the page they came from once they've logged in:
<cflocation url="" addtoken="no">

Sadly, however, this is not what's happening. Instead, the user is returned to the login page.

I get a different (but still wrong) result if I change the call to:
<cf_checkLogin srcdoc="#xfa.newtopic#&amp;forumID=#forumID#">

In this case, it takes me to the appropriate url but doesn't resolve the entity into a normal ampersand and so gives me an error that it can't find "forumID" when I call it further down the page.

Does anyone know how to solve this? I've been going in circles for the last half hour ro so, and I'm merely succeeding in confusing myself further..

Cheers,

Seona.










--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~----------~----~----~----~------~----~------~--~---