Sessions -Setting a timeout in order to re-logon

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Sessions -Setting a timeout in order to re-logon

    Hi,

    i've been playing around with the session time out setting in the webconfig.
    Now i set it at 1 minute and waited in the global.asx in the session end
    event but it does not fire.

    What i'm trying to achieve is the following.

    Forms authentification login : - Done
    If the user leaves the application open and unused for more than 10 minutes.
    I want kill the authentification and move them back to the log on screen.
    (now i have achieved the killing of the authentification and returning to
    the log on via a log off button) Now i want to activate the same code if
    their session times out.

    Has anyone done something similar or know of code to do this?

    Ric


    Ric Pullen Guest

  2. Similar Questions and Discussions

    1. Sessions never timeout problem
      Hi all, We're having a strange problem concerning sessions. For some reason sessions are not destroyed after timeout (viewing this via the...
    2. cfquery, timeout attribute and cfserver timeout setting
      On our server, CFMX 6.1, we have an option setting for timeout requests as120 seconds. Then in my query, I tried replacing the timeout setting to...
    3. Web service sessions never go away after timeout
      I have a problem with an intranet web service (that I developed using VS.NET 2003) which under some conditions causes the service to hang, resulting...
    4. #24669 [Bgs]: Sessions and Cookies Timeout prematurely
      ID: 24669 User updated by: sunofman at sympatico dot ca Reported By: sunofman at sympatico dot ca Status: Bogus Bug...
    5. #24669 [Opn->Bgs]: Sessions and Cookies Timeout prematurely
      ID: 24669 Updated by: sniper@php.net Reported By: sunofman at sympatico dot ca -Status: Open +Status: ...
  3. #2

    Default Re: Sessions -Setting a timeout in order to re-logon

    The SessionEnd event will only fire if you are using InProc session mode.

    "Ric Pullen" <Richard.Pullen-REMOVESPAM@Hospital.nhs.uk> wrote in message
    news:uU34E1mVDHA.424@TK2MSFTNGP11.phx.gbl...
    > Hi,
    >
    > i've been playing around with the session time out setting in the
    webconfig.
    > Now i set it at 1 minute and waited in the global.asx in the session end
    > event but it does not fire.
    >
    > What i'm trying to achieve is the following.
    >
    > Forms authentification login : - Done
    > If the user leaves the application open and unused for more than 10
    minutes.
    > I want kill the authentification and move them back to the log on screen.
    > (now i have achieved the killing of the authentification and returning to
    > the log on via a log off button) Now i want to activate the same code if
    > their session times out.
    >
    > Has anyone done something similar or know of code to do this?
    >
    > Ric
    >
    >

    PJ Guest

  4. #3

    Default Re: Sessions -Setting a timeout in order to re-logon

    Cheers, this is what i'm doing though, i've taken a copy of some of the
    info in the web.config

    <authentication mode="Forms">
    <forms name=".logoncookie" loginUrl="secure/Login.aspx" protection="All"
    timeout="80" path="/"/>
    </authentication>

    <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
    sqlConnectionString="data source=127.0.0.1;user id=sa;password="
    cookieless="false" timeout="1"/>



    "PJ" <pjwalNOSPAM@hotmail.com> wrote in message
    news:uoQJnqnVDHA.1912@TK2MSFTNGP11.phx.gbl...
    > The SessionEnd event will only fire if you are using InProc session mode.
    >
    > "Ric Pullen" <Richard.Pullen-REMOVESPAM@Hospital.nhs.uk> wrote in message
    > news:uU34E1mVDHA.424@TK2MSFTNGP11.phx.gbl...
    > > Hi,
    > >
    > > i've been playing around with the session time out setting in the
    > webconfig.
    > > Now i set it at 1 minute and waited in the global.asx in the session end
    > > event but it does not fire.
    > >
    > > What i'm trying to achieve is the following.
    > >
    > > Forms authentification login : - Done
    > > If the user leaves the application open and unused for more than 10
    > minutes.
    > > I want kill the authentification and move them back to the log on
    screen.
    > > (now i have achieved the killing of the authentification and returning
    to
    > > the log on via a log off button) Now i want to activate the same code if
    > > their session times out.
    > >
    > > Has anyone done something similar or know of code to do this?
    > >
    > > Ric
    > >
    > >
    >
    >

    Ric Pullen 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