•
•
•
•
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,020 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,742 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: 3376 | Replies: 0
![]() |
•
•
Join Date: Apr 2006
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
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..
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..
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ColdFusion Marketplace
Similar Threads
- ASP Redirect on Session Timeout (ASP.NET)
- Redirect to loginpage on Session timeout (C#)
- Session problem in asp (ASP)
- Session (PHP)
- urgent: session timeout occurs unexpectedly(given both web.config & global.asax code) (ASP.NET)
- Session variable (ASP.NET)
Other Threads in the ColdFusion Forum
- Previous Thread: Help
- Next Thread: Admin Login


Linear Mode