You might want to put this in an act file. Try something like this:
<cfif not isdefined("client.clientID")>
<cf_returnfuseaction
action="set"
gotourl="index.cfm?fuseaction=members.loginform"
returnurl="#cgi.script_name#?#cgi.query_string#">
</cfif>
Then from your members.loginform fuseaction, you would point that to another
fuseaction which would actually log the person in. You might have another
act_login.cfm that looks like this:
<cfquery name=checklogin....>
select clientid
from users
where email='#attributes.email#'
and password='#attributes.password#'
</cfquery>
<cfif checklogin.recordcount>
<cfset client.clientid=checklogin.clientid>
<cf_returnfuseaction
action="return">
</cfif>
Give that a shot.
Steve Nelson
Leonardo Crespo wrote:
> Ok, i will explain in details. I have a fuseaction called "addProduct".
> The user can only add a product if he's loogged in. So, the fusebox
> receives the "addProduct" fuseaction and if the user is not logged in,
> he's sent to the "Login" fuseaction.
>
> What i want is, when the user is logged in sucefully, he's sent back to
> the "addProduct" fuseaction (with a session.loginok or a
> client.clientID).
>
> I cannot hardcode a <cflocation> in the "Login" fuseaction because it is
> used by others fuseactions.
>
> Is this the job of the returnfuseaction tag?
> icq 18506630
>
==^================================================================
This email was sent to: [email protected]
EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]
T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================