I have been developing a Fusebox app using the server on my machine (NT4
Server SP 5, CF Enterprise 4.5.1). Everything works when I route it through
localhost (127.0.0.1), but not when I try to use the hostname I have had set
up for testing. The problem is that the whole app seems to work, right up
to the point where the login sub-fuse (child of main fuse) passes back up to
the parent fuse. I have put stubs in my code to show me that the code is
working and setting the Session and Cookie variable, but when it passes back
up the tree, they disappear...
Here's the code:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~
<!--- act_dologin.cfm --->
<!--- Rebellion Member Module --->
<!--- If we didn't come from the login page, send the user there --->
<CFIF NOT ISDEFINED("Form.Login") OR NOT ISDEFINED("Form.Password")>
<CFLOCATION URL="index.cfm?fuseaction=loginform">
</CFIF>
<!--- Lookup the login in the database --->
<CFQUERY NAME="IsValidLogin" DATASOURCE="#request.MainDSN#">
SELECT IDENTIFIER, FIRSTNAME, MEMBERID
FROM REBEL.MEMBERS
WHERE (IDENTIFIER = '#Form.Login#') AND (LASTNAME = '#Form.Password#')
</CFQUERY>
<!---If it was an invalid login, send them back to the login page --->
<CFIF ISVALIDLOGIN.RECORDCOUNT IS "0">
<CFLOCATION URL="index.cfm?fuseaction=loginform">
</CFIF>
<!--- Otherwise setup personalization parameters and send the user on --->
<!--- set Session variables --->
<CFSCRIPT>
Session.Member_ID = IsValidLogin.MemberID;
Session.Identifier = IsValidLogin.Identifier;
Session.FirstName = IsValidLogin.FirstName;
Session.NewsCount = 3;
</CFSCRIPT>
<!--- We'll need to include this in the Members table
// Session.NewsCount = IsValidLogin.NewsCount; --->
<!--- set cookie --->
<CFCOOKIE NAME="Member_ID" VALUE="#Evaluate("SESSION.MEMBER_ID")#"
EXPIRES="NEVER">
<!--- Stub to test query and data
<CFOUTPUT>
Session.Member_ID #Session.Member_ID#<BR>
Session.Identifier #Session.Identifier#<BR>
Session.FirstName #Session.FirstName#<BR>
Session.NewsCount #Session.NewsCount#<BR>
Cookie Data #Cookie.Member_ID#<BR>
</CFOUTPUT> --->
<!---
Go to the home page
We have to do it this way as you can't CFLOCATION after a CFCOOKIE
See Allaire KnowledgeBase Article 467 at
http://www.allaire.com/Handlers/index.cfm?ID=1525&Method=Full
--->
<META HTTP-EQUIV="Refresh" CONTENT="0 URL=../index.cfm?fuseaction=member">
<CFABORT>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~
ANY help very appreciated.
Steve
________________________________________________________________
| Stephen Collins |
| Senior Business Consultant - Powerlan |
| 12/90 Barrier Street FYSHWICK ACT 2609 Australia |
| Ph +61 2 62800370 Fax +61 2 62800380 Cel +61 410 680722 |
| [EMAIL PROTECTED] ICQ 56321783 [EMAIL PROTECTED] |
| http://www.powerlan.com.au |
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~oOo~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| Before I got into triathlon, I was a normal person. |
|________________________________________________________________|
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.