My most common problems with session variables are;
sesssion.myVar
and
sessoin.myVar

sigh

however there are no obvious typos in your post.

try outputting  your var in the if.

as an alternative you can try this

<cftoutput>
<cfif isDefined("session.myVar")>
     <javascript>
          alert("the value of xxx is = "  + "#session.myVar#" );
     </javascript>
<cfelse>
     <javascript>
          alert("lights are on but no ones home");
     </javascript>
   </cfif>
</cftoutput>

there's nothing like a nice irritating dialog box !!

-steve
PS
the positioning of the cfoutput tag is horrible but its only for
debuggering.




                                                                                       
                           
                    "Erik Fenkell"                                                     
                           
                    <[EMAIL PROTECTED]        To:     <[EMAIL PROTECTED]>           
                           
                    om>                     cc:                                        
                           
                    Sent by:                Subject:     [CFTALKTor] Session Variables 
passed between 2           
                    owner-cfug@cfugt        application with the same name             
                           
                    oronto.org                                                         
                           
                                                                                       
                           
                                                                                       
                           
                    06/11/02 01:56                                                     
                           
                    PM                                                                 
                           
                    Please respond                                                     
                           
                    to CFTALK                                                          
                           
                                                                                       
                           
                                                                                       
                           




Hello All,

I am having a problem that has been answered before but I am unable to get
it to work using past threads from this list.

Here goes.

I have an application that has a login. There is a secured portion of the
application and an unsecured portion. There is an Application.cfm file that
sits at the very top of the application and an Application.cfm file that
sits inside the secure folder. When the user logs in correctly, I set a
session variable (session.loggedin = 'y').

I then CFLOCATION to the secured folder and do some sort of <CFIF
session.loggedin EQ 'y'> --SHOW APPLICATION <ELSE> -- KICK USER BACK TO
LOGIN PAGE.

Both Application.cfm files have a <CFAPPLICATION> tag and both have the
same application name. As a matter of fact, both are identical, yet I still
get :

""Error resolving parameter SESSION.LOGGEDIN"

I know rthat I have set this variable because I can call it from within the
Application that it is set, but not another identical Application.cfm file.

Any advice or direction would be awesome.

Thanks,
Erik




-
You are subscribed to the CFUGToronto CFTALK ListSRV.
This message has been posted by: [EMAIL PROTECTED]
To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/
This System has been donated by Infopreneur, Inc.
(http://www.infopreneur.net)

Reply via email to