ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 18th, 2005, 02:59 PM
Mudflap4874 Mudflap4874 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 116 Mudflap4874 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 13 h 56 m 58 sec
Reputation Power: 5
Session Timeout

Using the following code in CFMX 6.1 works perfectly when placed in the Application.cfm file:

Code:
<cfapplication name="TimeMeOut" 
clientmanagement="Yes" 
applicationtimeout="#CreateTimeSpan(0, 0, 15, 0)#" 
sessionmanagement="Yes" 
sessiontimeout="#CreateTimeSpan(0, 0, 15, 0)#">

Was wondering if it is possible to exclude a specific folder from using this logic to timeout?

If so, can you use a template path variable and set up an IF statement? Like:

Code:
<CFIF #Find('\dontTimeoutFolder\',CGI.CF_TEMPLATE_PATH)# is not 0>
  <cfapplication name="TimeMeOut" 
  clientmanagement="Yes" 
  sessionmanagement="Yes">
<CFELSE>
  <cfapplication name="TimeMeOut" 
  clientmanagement="Yes" 
  applicationtimeout="#CreateTimeSpan(0, 0, 15, 0)#" 
  sessionmanagement="Yes" 
  sessiontimeout="#CreateTimeSpan(0, 0, 15, 0)#">
</CFIF>

thanks!

Reply With Quote
  #2  
Old July 18th, 2005, 03:19 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,648 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 12 h 8 m 8 sec
Reputation Power: 53
You should be able to put a cfapplication tag with the same name but a different timeout value in the subdirectory (it its own Application.cfm file). CF will execute that Application.cfm file instead, and your alternate timeout will be used.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #3  
Old July 19th, 2005, 11:12 AM
Mudflap4874 Mudflap4874 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 116 Mudflap4874 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 13 h 56 m 58 sec
Reputation Power: 5
Thanks!

Got everything functioning properly - your help is always appreciated!

Reply With Quote
  #4  
Old July 19th, 2005, 11:37 AM
Caden Caden is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 270 Caden User rank is Private First Class (20 - 50 Reputation Level)Caden User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 6 h 57 m 16 sec
Reputation Power: 4
While we're on the topic, I couldn't get my session to time out...

I had it set at like 5 seconds, waited 5 seconds, hit refresh, but it never kicked me back to a login screen...any ideas?

Reply With Quote
  #5  
Old July 19th, 2005, 11:40 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,648 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 12 h 8 m 8 sec
Reputation Power: 53
hmmm, I've never seen this problem. An easy way to prove that it is working is to create a single page with a cfapplication tag, then cfparam a session variable with #now()# (the current time), and finally dump the session scope with cfdump var="#session#". Wait for the timeout and rerun the page and you should see that the session variable has been recreated with a new time, since the old one had timed out.

Reply With Quote
  #6  
Old July 19th, 2005, 12:07 PM
Caden Caden is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 270 Caden User rank is Private First Class (20 - 50 Reputation Level)Caden User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 6 h 57 m 16 sec
Reputation Power: 4
i'll try that, thanks

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Session Timeout


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway