In order to keep my user's session alive, I'm using CFAJAXPROXY to make
repeated, timely calls to a cfm page.
This works for the first 60 mins or so.. Logs fine, username coming across
perfectly. However after 60 mins, I get "Error invoking CFC /proxy.cfc:
Unknown"
Any ideas?? I was expecting the CFAJAXPROXY call to happen every 10 minutes and
therefore keep their session alive as long as the user stays on the page.
-------------KEEPALIVE.CFM-------------
<cfajaxproxy cfc="proxy" jsclassname="proxy" /> <script>
function keepAliveProxy() {
var instance = new proxy();
instance.setCallbackHandler(callBackSuccess);
instance.keepAlive();
}
function callBackSuccess(result) {
;
}
</script>
<script>
setInterval('keepAliveProxy()',10*60*1000);
</script>
--------------PROXY.CFC------------------
<cfcomponent>
<cffunction name="keepAlive" access="remote" returnType="string">
<cfif isDefined("session.user")>
<cfset uName = session.user.username />
<cfelse>
<cfset uName = "no user" />
</cfif>
<cfquery name="log" datasource="dsssss">
INSERT INTO log
VALUES (current_timestamp, '#cgi.script_name# - #uName# -
#timeFormat(now(), "hh:mm:ss")#', '#cgi.remote_addr#',NULL)
</cfquery>
<cfreturn uName>
</cffunction>
</cfcomponent>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298963
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4