|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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 |
|
#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 ![]() |
|
#5
|
|||
|
|||
|
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?? |
|
#6
|
|||
|
|||
|
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?
|
|
#7
|
|||
|
|||
|
it's 4.5 (i know, not the newest of versions)
ta |
|
#8
|
|||
|
|||
|
No, that version is something like 7 years old. Did you restart the server?
|
|
#9
|
|||
|
|||
|
ya, it's cool, i had to restart the server.
Figured as much. Wow, 7 years old. We should get an upgrade ![]() thanks again! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > cfapplication timeout not working properly |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|