User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ColdFusion section within the Web Development category of DaniWeb, a massive community of 374,611 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,480 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ColdFusion advertiser:
Views: 3378 | Replies: 0
Reply
Join Date: Apr 2006
Posts: 1
Reputation: abby_babes is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
abby_babes abby_babes is offline Offline
Newbie Poster

HELP: CF 4.5 Session Timeout issue

  #1  
Apr 19th, 2006
hi there! Can anyone help me on this...

I am currently working in a webbased application using CF 4.5 and SQL Server 2000 as backend. Im having problems with Session variables. The users are complaining for being kicked out while editing few items from quotation detail screen. the timeout actually happens even before the screen's idle for 15mins.

i have application.cfm code as follows:

<cfapplication name="schaar" sessionmanagement="Yes"
setclientcookies="Yes" sessiontimeout="#CreateTimeSpan(0,0,55,0)#"
clientmanagement="Yes">
<cfset dbname="schaardb">
<cfset dbuser = "schaaruser">
<cfset dbpwd = "schaarpwd">
<cfset dbrptpath = "http://neptune/schaar/rpts/" >
<cfset dbpath = "C:\web\schaar\csv\">
<cfset dbrptparm = "init=actx&user0=schaaruser&password0=schaarpwd">
<cfset dbrptparm2 = "init=html_frame&user0=schaaruser&password0=schaarpwd">
<cfset dbdateformat ="DD/MM/YYYY">
<cfset dbdateformat2 ="MM/DD/YYYY">

<cfquery name="qry1000" datasource="#dbname#" username="#dbuser#" password="#dbpwd#">
select top 1 * from tco_employee
</cfquery>
<cfoutput query="qry1000">
<cflock timeout="30" throwontimeout="Yes" name="#Application.ApplicationName#" type="EXCLUSIVE">
<cfset appTitleFace = "#empl_id#">
</cflock>
</cfoutput>



i also have sessionchk.cfm code as follows:

<cflock timeout="30" name="Session.SessionID" type="READONLY">
<cfif isdefined("session.uuserrole")>
<cfif #trim(session.uuserrole)# EQ "X">
<cfset StructDelete(Session, "uuserID")>
<cfset StructDelete(Session, "uuserrole")>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Login</title></head><body>
<script language="JavaScript">alert('You must log-in first'); location.href="login.cfm";</script>
</body></html>
<cfabort>
</cfif>
<cfelse>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Login</title></head><body>
<script language="JavaScript">alert('You must log-in first'); location.href="login.cfm";</script>
</body></html>
<cfabort>
</cfif>
</cflock>


<cfset wan = 1>



pls help me.. ive been working on this issue for 5 weeks now.. extremely frustrating..
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

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

 

DaniWeb ColdFusion Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the ColdFusion Forum

All times are GMT -4. The time now is 8:25 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC