views:

62

answers:

2

Pretty much all of the ColdFusion language has been made available in some form using the cfscript syntax in ColdFusion 9. One item that I have not be able to find, though, is whether or not there is a script equivalent to the cflogin tag.

If there isn't, is there maybe a workaround using flash remoting gateway?

A: 

why not roll your own. Write a function using the cf tag version, that uses cflogin then call that from cfscript as in

logUserIn(username, pass);

the method works for any cf tag that does not have its equivalent in cfscript.

hth, larry

larryclyons
That can't work in this case. cflogin creates a special transient scope that is available during the execution of the cflogin tag. It doesn't exist outside of that, not even in the request scope.
anopres
+1  A: 

<cflogin> in script style is not supported, but you can write your own.

For all supported tags in CF9 script, see: Extending ColdFusion Pages with CFML Scripting - What is supported in CFScript

Henry
Do you have an example?
anopres
see comment by kevink
Henry