Skip to main content
November 9, 2009
Answered

session timeout

  • November 9, 2009
  • 2 replies
  • 626 views

I am trying to have a user's session stop working after a certain amount of time but am having no luck.

For testing, I've tried to make the session stop after 1 minute by having this in application.cfm.

<cfapplication name="p1" clientmanagement="yes" clientstorage="registry" sessionmanagement="yes" sessiontimeout="#createtimeout(0,0,1,0)#" >

What am I doing wrong ?

    This topic has been closed for replies.
    Correct answer Daverms

    lwfg,

    Apart from your Application.cfm

    You need to check the existence of the session in your ColdFusion templates,

    <cfif NOT StructKeyExists(session,"your_session_variable")>

          <cflocation url="yourLoginForm.cfm" />

    </cfif>

    HTH

    2 replies

    Inspiring
    November 9, 2009

    What's happening to make you think something is going wrong?

    PS: I really *really *would not store your client vars in your registry if I

    was you.

    --

    Adam

    DavermsCorrect answer
    Inspiring
    November 9, 2009

    lwfg,

    Apart from your Application.cfm

    You need to check the existence of the session in your ColdFusion templates,

    <cfif NOT StructKeyExists(session,"your_session_variable")>

          <cflocation url="yourLoginForm.cfm" />

    </cfif>

    HTH

    November 13, 2009

    Thank you.