Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Programming

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 28-07-2003, 10:58 PM
New kid on the block
 
Join Date: Mar 2002
Location: klang
Posts: 5
Rep Power: 0
anakrantau98 is on a distinguished road
cold '****'sion

dear expertices;

i got really frustrated with the cold fusion 5. after fresh installation on windows 2000 professional platform, the cold fuldsion cannot execute client varibales that been declared.

before the installation, my coding run smoothly. i don't know what happen. i configured the cold fusion but still cannot solve the problem. i try to change registry to cookies and vice versa, but still got the same problem.

here i attached the coding so you can find out why,
----------------------------------------------------------------------------------

file name : application.cfm under folder 'pac'

<CFAPPLICATION NAME = "Pac"
CLIENTSTORAGE = "registry"
CLIENTMANAGEMENT = "Yes"
SESSIONMANAGEMENT = "Yes"
SESSIONTIMEOUT = #CreateTimeSpan(0,2,0,0)#
APPLICATIONTIMEOUT = #CreateTimeSpan(0,10,0,0)#>

<cfset application.aplikasi = 'L B G : Lebihan Bayaran Gaji'>
<cfset application.sumberdata = 'pemantauan'>

file name : pengguna.cfm under folder 'pac'

<!--- querying database --->

<cfQuery Name="GetPass" datasource="#application.sumberdata#">
Select pidpengguna, pkatalaluan, ppengguna , pstatus, pagensi from pengguna
WHERE pidpengguna = '#Form.pengguna#' AND pkatalaluan = '#Form.katalaluan#'
</cfquery>
<cfquery name="agensi" datasource="#application.sumberdata#">
select aid,akod,anama,ajabatan from agensi where aid = #val(getpass.pagensi)#
</cfquery>

--->

<cfif getpass.recordcount neq 0>

<!--- declaring client variables --->

<cfset client.pengguna = getpass.pidpengguna>
<cfset client.namapengguna = getpass.ppengguna>
<cfset client.status = getpass.pstatus>
<cfset client.agensi = agensi.aid>
<cfset client.kodagensi = agensi.akod>
<cfset client.namaagensi = agensi.anama>
<cfset session.sahih = 1>

<!-- querying database

<cfquery datasource="#application.sumberdata#" name="pegawai">
select * from pentadbir
</cfquery>
--->

<!--- declaring application variables --->
<cfset application.idpegawai = pegawai.ptid>
<cfset application.pegawaibertanggungjawab = pegawai.ptnama>
<cfset application.emelpegawai = pegawai.ptemel>
<cfset application.telefonpegawai = pegawai.pttelefon>
<cfset application.emelpembekal = pegawai.ptemelpembekal>

<!--- semak agensi ini banyak ptj atau tak --->

<cfif agensi.aid eq agensi.ajabatan>
<cfset client.banyakptj = 1>
<cfelse>
<cfset client.banyakptj = 0>
</cfif>

<!--- go to the menu --->

<cflocation url="maklumat/menu.cfm">
<cfelse>
<cflocation url="pengguna.cfm">
</cfif>

<cfset session.sahih = 0>

file name : application.cfm under folder pac\maklumat\

<CFAPPLICATION NAME = "Pac"
CLIENTSTORAGE = "registry"
CLIENTMANAGEMENT = "Yes"
SESSIONMANAGEMENT = "Yes"
SESSIONTIMEOUT = #CreateTimeSpan(0,2,0,0)#
APPLICATIONTIMEOUT = #CreateTimeSpan(0,10,0,0)#>

<cfset application.aplikasi = 'L B G : Lebihan Bayaran Gaji'>

<!--- kat sini problem nya
<cfif isdefined("CLIENT.NAMAPENGGUNA")>
<cfset kesalahan = 'Anda belum log in lagi - masalah client'>
<cfset hompej = '../pengguna.cfm'>
<cfinclude template="masalah.cfm">
<cfabort>
</cfif>

[COLOR=orange-red]* this message will be prompt. it meant that client.namapengguna was not declared/assigned in the pengguna.cfm file. but it was been declared !!!. [/color]

--->

<cfif isdefined("session.sahih")>
<cfif session.sahih eq 0>
<cfset kesalahan = 'Anda belum log in lagi'>
<cfset hompej = '../pengguna.cfm'>
<cfinclude template="masalah.cfm">
<cfabort>
</cfif>
<cfelse>
<cfset kesalahan = 'Anda belum log in lagi'>
<cfset hompej = '../pengguna.cfm'>
<cfinclude template="masalah.cfm">
<cfabort>
</cfif>

hope you can help me. :(

tahnk you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 14-08-2003, 10:36 AM
kpyew's Avatar
Senior Webmaster
 
Join Date: Jul 2001
Location: KL, Malaysia
Posts: 277
Rep Power: 95
kpyew is on a distinguished road
Send a message via ICQ to kpyew
why u need 2 application.cfm? one under pac and another under pac\maklumat ?
__________________
webmaster @ http://kongtechnology.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 29-10-2003, 04:53 AM
New kid on the block
 
Join Date: Oct 2003
Location: greens
Posts: 2
Rep Power: 0
Vbprog40 is on a distinguished road
Must important, make sure you allow Client varables to be created in CF Administrator.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
WINDOWS Shared Hosting. Support ASP.net, Cold Fusion, WAP, XML etc. From RM49/year. josh3r Other Webmaster-related Services and Promotion 5 05-11-2005 04:39 PM
ape cold fusion bleh buat? Syazwan Website Programming 15 20-09-2005 06:32 PM
Cold Fusion - Admin & Developer zmiey Job Vacancies 1 29-05-2005 05:52 PM
$ 6.95 Windows Hosting :: MS SQL, ASP.NET, Cold Fusion, Oracle, Multiple domains JodoHost Other Webmaster-related Services and Promotion 0 29-03-2005 07:06 PM
Windows 2000, Dot.NET, Cold Fusion Hosting - New Year Special! 300Mb for $15.65 ksstudio Other Webmaster-related Services and Promotion 0 02-01-2003 03:14 AM


All times are GMT +8. The time now is 03:18 AM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.


WebmasterMalaysia.com is Proudly Hosted by Exabytes Semi Dedicated Server.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61