Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Re: Session timeout

    Hi,


    You can control when the session end by using the Session_onEnd event in
    global.asax. But when the session expired the user won’t make any
    request from the server so you can’t redirect him to any page. You can
    develop data structure to hold the ending sessions with their cookies
    values and check every incoming request if its session cookie match the
    ending session and then redirect the user.

    Natty Gur, CTO
    Dao2Com Ltd.
    28th Baruch Hirsch st. Bnei-Brak
    Israel , 51114

    Phone Numbers:
    Office: +972-(0)3-5786668
    Fax: +972-(0)3-5703475
    Mobile: +972-(0)58-888377

    Know the overall picture


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur Guest

  2. Similar Questions and Discussions

    1. how to specify session timeout
      Hi I am setting objects in the session using following tycnique. <mx:RemoteObject id="loginidObj" source="servlet" showBusyCursor="true"...
    2. PHP session timeout
      I've modify the php.ini the session.gc_maxlifetime to reduce the time of timeout of the session variabiles. But it not seems to go. In fact the...
    3. Session.timeout
      I have a session object Session("login") whereas I need to extend the time on this to 1 hour, instead of the default 20 minutes. After initializing...
    4. IIS Session timeout
      Is there a way to notify a client browser that their IIS Session is about to OR has just expired?
    5. How to set session timeout
      Setting session timeout in web.config file does not seem to have any effect. Any explanation or suggestion will be appreciated.
  3. #2

    Default Session Timeout

    If I have a browser open and an open session on a web server, if I close all
    of my browsers do I still have a session_end event that fires on the
    server....?


    alien2_51 Guest

  4. #3

    Default Session Timeout

    From what I see, the default timeout for a session is 1440 seconds or
    24 minutes. I was gone for nearly an hour, came back, and the session
    was still valid. Must the value set in the config file be different
    than 1440, or am I misunderstanding session.gc_maxlifetime? I'd like
    for the user to be required to log in if they've been inactive for 10
    minutes, or if they closed the browser window and opened another one.


    Sorry for all the basic questions :)


    Seth Willits
    ------------------------------------------------------------------------
    ---
    President and Head Developer of Freak Software - [url]http://www.freaksw.com[/url]
    Q&A Columnist for REALbasic Developer Magazine -
    [url]http://www.rbdeveloper.com[/url]
    Webmaster for REALbasic Game Central - [url]http://www.freaksw.com/rbgames[/url]

    "Not everything that can be counted counts, and not everything that
    counts
    can be counted."
    -- Albert Einstein
    ------------------------------------------------------------------------
    ---
    Seth Willits Guest

  5. #4

    Default Session Timeout

    I was wondering if there is any way to change the session timeout value after a
    successful login using the Login behavior in Dreamweaver. Currently, after a
    successful login, if the user is idle for a period of few minutes the session
    will expire and the user will have to login again. I'm looking to increase that
    session timeout value.

    ACORDEA Guest

  6. #5

    Default Re: Session Timeout

    Hi there, This setting has nothing to do with dreamweaver, it's a web server
    setting. If you are using IIS, you can do the following Open IIS Right Click on
    default web site and click properties. On the website tab, half way down you
    will see a connections timeout box, set this to 10000 or something. Hope that
    helps

    greekchild Guest

  7. #6

    Default Re: Session Timeout

    <%
    ' timeout session after 60 minutes
    Session.TimeOut = 60
    %>


    --
    __________________________________________________ __________________
    UltraSuite Extension Packages: [url]http://www.ultrasuite.com/[/url]
    The *most popular* Suites of DMX 2004 and DMX Server Behaviors
    for ASP, ASP.Net, ColdFusion, JSP, and PHP_MySQL
    __________________________________________________ __________________


    J.S. \(UltraSuite\) Guest

  8. #7

    Default Re: Session Timeout

    I'll have to make it more clear...
    I'm using the Login server behavior.
    The webserver connection was previously set to 900 seconds and the login
    session was timing out after 2-3 minutes, way too early for 900 seconds which
    is 15 minutes.
    It must me something else.

    I set it up for 10000 seconds as a test. I'll see the result.

    ACORDEA Guest

  9. #8

    Default Re: Session Timeout

    Originally posted by: Newsgroup User
    <%
    ' timeout session after 60 minutes
    Session.TimeOut = 60
    %>

    Does this portion of code have to be added on every page of the site?
    --
    __________________________________________________ __________________
    UltraSuite Extension Packages: [url]http://www.ultrasuite.com/[/url]
    The *most popular* Suites of DMX 2004 and DMX Server Behaviors
    for ASP, ASP.Net, ColdFusion, JSP, and PHP_MySQL
    __________________________________________________ __________________






    ACORDEA Guest

  10. #9

    Default Re: Session Timeout

    Originally posted by: Newsgroup User
    <%
    ' timeout session after 60 minutes
    Session.TimeOut = 60
    %>


    --
    __________________________________________________ __________________
    UltraSuite Extension Packages: [url]http://www.ultrasuite.com/[/url]
    The *most popular* Suites of DMX 2004 and DMX Server Behaviors
    for ASP, ASP.Net, ColdFusion, JSP, and PHP_MySQL
    __________________________________________________ __________________




    Does this portion of code have to be added on every page of the site?

    ACORDEA Guest

  11. #10

    Default Re: Session Timeout

    The best way is to add this to the global.asa file.

    --
    __________________________________________________ __________________
    UltraSuite Extension Packages: [url]http://www.ultrasuite.com/[/url]
    The *most popular* Suites of DMX 2004 and DMX Server Behaviors
    for ASP, ASP.Net, ColdFusion, JSP, and PHP_MySQL
    __________________________________________________ __________________


    J.S. \(UltraSuite\) Guest

  12. #11

    Default Re: Session Timeout

    Originally posted by: greekchild
    Hi there, This setting has nothing to do with dreamweaver, it's a web server
    setting. If you are using IIS, you can do the following Open IIS Right Click on
    default web site and click properties. On the website tab, half way down you
    will see a connections timeout box, set this to 10000 or something. Hope that
    helps

    I'm sorry I have to contradict, but by changing the connection timeout to
    10000 seconds in my web server configuration does not change anything for my
    users. They still get prompted to log in again after few minutes of inactivity.

    ACORDEA Guest

  13. #12

    Default Re: Session Timeout

    Originally posted by: Newsgroup User
    The best way is to add this to the global.asa file.

    --
    __________________________________________________ __________________
    UltraSuite Extension Packages: [url]http://www.ultrasuite.com/[/url]
    The *most popular* Suites of DMX 2004 and DMX Server Behaviors
    for ASP, ASP.Net, ColdFusion, JSP, and PHP_MySQL
    __________________________________________________ __________________




    I'm not using the global.asa file. I'm using the Server Login behavior from
    within Dreamwever.

    ACORDEA Guest

  14. #13

    Default session timeout

    Hi - using ASpAccess/VBscript
    btn Guest

  15. #14

    Default session timeout

    Hi - Using ASP/Access/Vbscript

    What is the default session timeout when I use the Log In behaviour in DW ?
    How can I make this time longer?

    Thanx.

    Bjorn.
    btn Guest

  16. #15

    Default Re: session timeout

    "btn" wrote:
    > Hi - Using ASP/Access/Vbscript
    >
    > What is the default session timeout when I use the Log In behaviour in DW
    ?
    > How can I make this time longer?
    >
    > Thanx.
    >
    > Bjorn.
    You have to ask your host. Try looking at my linkes here:

    My own domaine - [url]http://tinemuller.dk/serverinfo/info/[/url] is set to 30 minutter
    because I have "Session.Timeout = 30 '## minutes" in my global.asa file.

    The host's server is here [url]http://emma.andersenit.dk/serverinfo/info/[/url] and is
    default 20 minutter.

    /Tine


    Tine Müller Guest

  17. #16

    Default Session Timeout

    Hi, All -

    From time to time, my application gets terminated before it reaches the
    session time-out set in application.cfm.

    In "application.cfm"

    <CFAPPLICATION NAME="Outage"
    SESSIONMANAGEMENT="Yes"
    SETCLIENTCOOKIES="Yes"
    SESSIONTIMEOUT="#CreateTimeSpan(0, 1, 0, 0)#">

    <CFIF NOT IsDefined("Session.LoggedIn")>
    <CFLOCATION URL="../index.cfm">
    </CFIF>


    Following code is executed when a user logs in.

    <CFLOCK SCOPE="Session" TIMEOUT="2" TYPE="EXCLUSIVE">
    <CFSET Session.LoggedIn = "Yes">
    </CFLOCK>

    By the way, the default session timeout is 60 minutes on the server and I am
    using Coldfusion 5.

    Thanks.

    David


    david10 Guest

  18. #17

    Default Session Timeout

    I need to kick people out of my admin tools if they have been idle to long.

    I have no clue how to do thiw. The site is a mix of admin tools and public
    information so it needs to be placed in a specific location so it doesn't kick
    people out of the public area.

    I would like to set it so that if someone is idle for 10 min it kicks them out
    automatically back to the admin login page.

    Any help would be greatly appreciated.

    Smiller Guest

  19. #18

    Default Re: Session Timeout

    set the sessiontimeout variable of your CFAPPLICATION tag to 10 minutes
    SafariTECH Guest

  20. #19

    Default Re: Session Timeout

    Oops. Should have pasted the code I used

    <cfapplication name="myApp" clientmanagement="Yes" sessionmanagement="Yes"
    sessiontimeout="#CreateTimeSpan(0,0,5,0)#" applicationtimeout="10">

    It doesn't time out. It doesn't do anything.




    Smiller Guest

  21. #20

    Default Re: Session Timeout

    The session variables will timeout - if your application always checks for a
    login, and they do nothing at the website at all during that period, it will
    relocate them to a login form if that is the way you code it.

    If you don't check a session variable for a login all the time the site is
    accessed, it will simply keep showing pages.

    If you post the entire application .cfm code, including the portions where you
    are validating the session values etc, we may be able to see where things are
    going a bit kaputz :)



    SafariTECH Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139