Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

session keep timing out

Status
Not open for further replies.

caibang2

Programmer
Joined
Aug 22, 2001
Messages
2
Location
US
I am having problem with session timing out even within a second. This happen when when a form executing either an update or delete SQL statement. Also this does not happen to all user login. Every user login is using the same login ID to database. ColdFusion Adminstration set session timeout to 20 minutes. Here is sample of my appplication.cfm file. Does ColdFusion save session variables on client side? I tried to reboot ColdFusion server and still getting session timeout. Thanks :-)

<cfapplication name=&quot;d91a_TEST&quot; sessionmanagement=&quot;Yes&quot; setclientcookies=&quot;yes&quot; sessiontimeout=&quot;#CreateTimeSpan(0,1,0,0)#&quot;>


<cfif LCASE(CGI.SCRIPT_NAME) DOES NOT CONTAIN &quot;/c_01logon.cfm&quot; >

<cfif NOT ISDEFINED(&quot;session.log_id&quot;)>
<script>alert(&quot;Your session has expired! Please Logon again!&quot;);top.opener.location.reload();top.close();</script>

<cfabort>
<cfelseif #session.log_id# is '0'>
<script>alert(&quot;Please Logon!&quot;);top.opener.location.reload();top.close();</script>
<cfabort>
</cfif>
</cfif>


<cfif not ISdefined(&quot;APPLICATION.TEAM_DSN&quot;) >
<cflock timeout=&quot;30&quot; TYPE=&quot;ReadOnly&quot; >
<CFSET APPLICATION.TEAM_DSN = &quot;d91a_TEST&quot;>
</cflock>
</cfif>
 
The way this script it set up, session variables are set to a cookie. So if they don't have cookies enabled, then that could be a problem.

Also you may allready be aware of this but just in case you aren't... if you set a session variable and use cflocation on the same page, then the cookie won't even be set. - tleish
 
I checked to make sure cookies are enabled. My problem is once I encountered session time out, I will get session timeout if I either execute an UPDATE or DELETE SQL statement. I don't get session timeout when I execute an INSERT SQL statement. This session timeout happen instancely. I tired reboot my computer and ColdFusion server also. This also only happen in Netscape. Thanks for your reply tleish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top