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 August 22nd, 2005, 07:16 AM
wonderlandh wonderlandh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: Nottingham UK
Posts: 60 wonderlandh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 48 m 31 sec
Reputation Power: 4
cfapplication timeout not working properly

Hi,

We have this written in application.cfm:

Code:
<cfapplication name="test" sessionmanagement="Yes" SESSIONTIMEOUT=#CreateTimeSpan(0, 2, 0, 0)#>
<cfparam name="session.authenticated" default="no">


And we have a cfif session.authenticated = no then go back to the login page, on all the pages.

As far as i'm concerned, this means that after 2 hours of inactivity, you get kicked back to the login page, but it does this after about the default 20 minutes, not two hours.

Which seems a little arbitrary and unrelated to the above code.

Any ideas?

thanks

Reply With Quote
  #2  
Old August 22nd, 2005, 09:09 AM
Bastion Bastion is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 181 Bastion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 4 h 23 m 47 sec
Reputation Power: 4
The server should have it's own settings as well that can be accessed through the ColdFusion Administrator. I've found that the settings in the Administrator can override the programmed settings. So if the Admin is set to end the session in 20 minutes, the coded request for 2 hours is ignored.

Check the server or with your server admin about what it's set to.

Reply With Quote
  #3  
Old August 22nd, 2005, 10:16 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
The session timeout specified in the cfapplication tag cannot exceed the value set in the ColdFusion administrator.
__________________
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
  #4  
Old August 23rd, 2005, 03:41 AM
wonderlandh wonderlandh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: Nottingham UK
Posts: 60 wonderlandh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 48 m 31 sec
Reputation Power: 4
cheers, will look into it.

I've not had to get my hands dirty with Cf admin yet, so if I have any problems I'll come back, but it should be ok.

Thanks chaps

Reply With Quote
  #5  
Old August 23rd, 2005, 04:34 AM
wonderlandh wonderlandh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: Nottingham UK
Posts: 60 wonderlandh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 48 m 31 sec
Reputation Power: 4
ok, i did the required but alas, after about 20 minutes it did the same.

I've attached screen shots of a) cf admin and b) the application.cfm page

Is there anything else i need to be doing? does cf admin need to be restarted first or anything??
Attached Images
File Type: jpg sesh.jpg (18.7 KB, 55 views)
File Type: jpg coldfusion.jpg (31.7 KB, 45 views)

Reply With Quote
  #6  
Old August 23rd, 2005, 08:16 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
Assuming you did hit "apply", if it didn't take effect then yes you may need to restart the CF service. What version of CF is this?

Reply With Quote
  #7  
Old August 23rd, 2005, 10:30 AM
wonderlandh wonderlandh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: Nottingham UK
Posts: 60 wonderlandh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 48 m 31 sec
Reputation Power: 4
it's 4.5 (i know, not the newest of versions)

ta

Reply With Quote
  #8  
Old August 23rd, 2005, 01:15 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
No, that version is something like 7 years old. Did you restart the server?

Reply With Quote
  #9  
Old August 24th, 2005, 05:23 AM
wonderlandh wonderlandh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: Nottingham UK
Posts: 60 wonderlandh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 48 m 31 sec
Reputation Power: 4
ya, it's cool, i had to restart the server.

Figured as much.

Wow, 7 years old. We should get an upgrade


thanks again!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > cfapplication timeout not working properly


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 4 hosted by Hostway