|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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! |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
Thanks!
Got everything functioning properly - your help is always appreciated!
|
|
#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? |
|
#5
|
|||
|
|||
|
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.
|
|
#6
|
|||
|
|||
|
i'll try that, thanks
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Session Timeout |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|