• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Application variable help please!

New Here ,
Jun 22, 2009 Jun 22, 2009

Copy link to clipboard

Copied

Hello folks!

I am trying to use a application variable which is taking a input from a Login.cfm and passing to Auth.cfm . I am not able to use this application.WebPDMReports in Auth.cfm page and not sure what in heavens I am doing wrong please if you can look into my code.

Assuming WebPDMReports and USERID are defined in application.cfm.

Login.cfm

<cfparam name="WebPDMReports" default="">


  <cflock timeout=20 scope="Application" type="Exclusive">
     <cfset WebPDMReports="#cflogin.name#">

  </cflock>


<cflocation addtoken="no" url="../Auth.cfm">

Auth.cfm

<CFOUTPUT>

<CFLOCK SCOPE="session" TIMEOUT="30" TYPE="Exclusive">

  <CFSET session.USERID=#application.WebPDMReports#>  (If my session.USERID =loginuser then allows users to use index.cfm)
     
</CFLOCK>


</CFOUTPUT>

Please some one help me , I have wasted so much time just to make it work!!

TOPICS
Advanced techniques

Views

477

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 22, 2009 Jun 22, 2009

Copy link to clipboard

Copied

LATEST

Change this

<cfset WebPDMReports="#cflogin.name#">

to this

<cfset session.userid="#cflogin.name#">

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation