Log off user if they forget

Discussion in 'Programming' started by unitedlocalbands, Dec 6, 2007.

  1. #1
    Here is whats in my "application.cfm" file I cant seem to figure out what else I need to add to it to monitor something like page request. So if a user forgets to log out then the application will realize that they are gone and log them out automatically.

    
    <cfapplication name=""
                   clientmanagement="" 
                   clientstorage="">
                  
    <!--- Initialize application varibles --->
    <!--- The variable are all client variables --->
    <cfparam name="client.    " default="">
    
    
    <cferror type="exception" mailto="me" template="exception.cfm">
    
    <cfset REQUEST.sitename = "name">
    <cfset APPLICATION.companyname = "name">
    <cfset APPLICATION.dataSource = "dsn">
    <cfset dbdsn = "user"> 
    <cfset dbuser = "user">
    <cfset dbpw = "password">
    
    
    
    <cfmodule template="header.cfm">
    
    
    Code (markup):
    Adding sessiontimout does not seem to work. Or maybe I set it up wrong.
     
    unitedlocalbands, Dec 6, 2007 IP
  2. bruhol

    bruhol Guest

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,
    Are you saying this doesnt work ??

    <cfapplication name="myapp"
    sessionmanagement="Yes"
    sessiontimeout=#CreateTimeSpan(0,0,45,0)#>
     
    bruhol, Dec 6, 2007 IP
  3. unitedlocalbands

    unitedlocalbands Well-Known Member

    Messages:
    246
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #3
    I think thats what I'm saying, Where I may be confused is, When the session times out does that clear all the cookies from the clients computer as well?

    When I tried using session timeout I don't think i got the desired result because I have no session variables to time out.

    Thanks for you response.
     
    unitedlocalbands, Dec 6, 2007 IP