Victor, that would tell me that the most likely place to go looking is
the Application.cfm/cfc.
Since your browser isnt the likely culprit, it has to be something on
your server or in your app.
The web server doesnt have much to do with it, and nor does the
coldfusion server. I'd challenge each line in the Application.cfc/cfm
file and see if that makes the problem go away. It did for me. (I
know that doesnt mean its necessarily the solution for you but since I
think your Application.cfc file is the most likely culprit, I'd go
there now.)
I'd rename your existing Application.cfc so it doesnt execute. Start
again with a new blank file and transfer one segment of code at a
time, checking to make sure it belongs and that it's working ok. When
i did it the other day, I found lots of things that didnt really do
anything any more, and some things were quite wrong. Even if you dont
track down the source of your problem, you'll most likely end up with
a trimmer, smarter, better Application.cfc file.
I'd have a test page that has the following in it, so as you do each
step, you can check the status of the key variables in your app
(specially the sessionid):
<h3>Request variables</h3>
<cfdump var="#request#">
<h3>session variables</h3>
<cfdump var="#session#">
<h3>application variables</h3>
<cfdump var="#application#">
I'd begin with a totally bare-bones Application.cfc so you can see at
what point your sessions start to break. When I did it, i found i
was putting some code in the wrong place, and this showed me. When i
hit refresh on the browser on the test page, I suddenly started seeing
the SessionID change each page request, so I knew the code i added
last was the bit that was wrong. I'd got away with it for ages, but
not realised it becuase I hadn't deployed my cfc before where sessions
were needed. (Just by chance, I'd used an Application.cfm before then
whenever logins or sesion vars were needed) Here's what i used for
my bare-bones Application.cfc: (timeouts are set very short here to
make it easier to see new sessions and apps being generated.
Obviously in a live app you'd have them set a lot longer)
<cfcomponent name="Application" displayname="Application Component.">
<cfsilent>
<!----
==========================================================================================================
Filename: Application.cfc
Description:
Date: 30/4/2006
Author: Michael Kear
Revision history:
==========================================================================================================
--->
</cfsilent>
<cfsetting showdebugoutput="yes" />
</cfsilent>
<!----[ Set up basic application settings, cross-version ]---->
<cfset this.name = "AppName">
<cfset this.applicationTimeout = CreateTimeSpan(0,0,0,45)>
<cfset this.sessionManagement = true>
<cfset this.sessionTimeout = CreateTimeSpan(0,0,0,30)>
<cfset this.clientManagement = true>
<cfset this.clientStorage = "cookie">
<cfset this.loginStorage = "session">
<cfset this.setClientCookies = true>
<cfset this.setDomainCookies = false>
<cfset this.scriptProtect = false>
<!----[
============================================================================================================
Application start and end
============================================================================================================
]---->
<cffunction name="onApplicationStart" returntype="boolean"
output="true">
<!--- Set up Application variables. Locking the Application
scope is
not necessary in this method. --->
Starting application...<br/><br/>
<cfset Application.datetimeConfigured = TimeFormat(Now(), "hh:mm
tt") & " " & DateFormat(Now(), "dd/mmm/yyyy")>
<cfreturn true>
</cffunction>
<cffunction name="onApplicationEnd" returnType="void" output="false">
<cfargument name="ApplicationScope" required="true">
<cfset var appDuration = DateDiff("n",
arguments.ApplicationScope.datetimeConfigured, Now())>
<cflog file="#this.name#" type="information" text="Application
ended. It was active for #appDuration# minutes.">
</cffunction>
<!----[
============================================================================================================
Session start and end
============================================================================================================
]---->
<cffunction name="onSessionStart" returnType="void" output="true">
Starting a session...<br/><br/>
<cfset Session.datetimeConfigured = TimeFormat(Now(), "hh:mm
tt") &
" " & DateFormat(Now(), "dd/mmm/yyyy")>
</cffunction>
<cffunction name="onSessionEnd" returnType="void" output="false">
<cfargument name="SessionScope" required="true">
<cfargument name="ApplicationScope" required="true">
</cffunction>
<!----[
============================================================================================================
Request start and end
============================================================================================================
]---->
<cffunction name="onRequestStart" returntype="boolean" output="true">
<cfargument name="targetPage" required="true">
Starting a request...#arguments.targetPage#<br/><br/>
<!--- Set up request variables here. --->
<cfset request.requestTimeStart = GetTickCount()>
<cfreturn true>
</cffunction>
<cffunction name="onRequestEnd" returntype="void" output="true">
<cfargument name="targetPage" required="true">
<!--- Write any code that needs to run when the page request
ends.
This replaces onRequestEnd.cfm --->
<cfset request.requestTimeTotal = GetTickCount() -
request.requestTimeStart>
<br/><br/>Request time:
<strong>#request.requestTimeTotal#ms</strong>
</cffunction>
<!----[
============================================================================================================
OnError method
============================================================================================================
]---->
<cffunction name="onError" returnType="void" output="true">
<cfargument name="Exception" required="true">
<cfargument name="EventName" required="true">
<cfset var errMsg =
Application.utils.exceptions.GetExceptionMessage(arguments.Exception)>
<!--- <cfset
Application.utils.exceptions.SendExceptionEmail(this.name,
arguments.Exception)> --->
<h2>An error has occurred...</h2>
<p>
#errMsg#
</p>
</cffunction>
</cfcomponent>
Cheers
Mike Kear
Windsor, NSW, Australia
Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month
On 5/4/06, Victor Moore <[EMAIL PROTECTED]> wrote:
> Yes, I can connect to other sites using IE (including to this application
> but on other servers) but not local. Local I can only access using FF and
> just tried with Netscape and it's working fine.
>
> So the bottom line is cannot hold session with IE 6 or 7 from any machine
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239383
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54