Detecting session time out in custom log in page

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

  1. #1

    Default Detecting session time out in custom log in page

    If I use the following in my web.config

    <authentication mode="Forms"> <forms loginUrl="User/UserLogin.aspx"
    timeout="10"/> </authentication>

    then the page will time out after 10 minutes of inactivity and when the user
    next tries to use the app they will see my custom login page. How, then,
    can I code my login page to recognize that this is a timed out session
    (rather than a new login) and display helpful information about the
    situation?

    Thanks in advance,

    - Steve


    Stephen Walch Guest

  2. Similar Questions and Discussions

    1. Discovering CSS refs in page custom control resides during design time.
      Hi, I have custom controls that let developers apply CSS styles depending on the state of the control. They can do this at run-time and also at...
    2. Detecting URL Parameters in an HTML page
      Is there any way to detect URL parameters in an HTML page? There is a default.htm page on this site that redirect to my CF page. Now I have to...
    3. Detecting design mode in custom control
      Is it pretty safe to assume that if Context is null, then its design mode? if (null == this.Context) { return true; } Naveen Kohli...
    4. Custom Control design time access to SQLConnection on Web Page
      Hi I'm developing a server web control and it requires a SQLConnection object. Is there a way at design time to display a list of available...
    5. Accessing ADO.NET Data Controls on a Web Page from custom control at Design Time
      Hi I'm building a custom control that requires a SQL Connection. I would like to be able to display a list of SQL Connection Data Controls on a...
  3. #2

    Default RE: Detecting session time out in custom log in page

    Hi Stephen,

    I have reviewed your issue. Due to the nature of your issue I need to do
    additional research to determine the best way to provide assistance. I will
    contact you as soon as possible.

    Best regards,

    Jacob Yang
    Microsoft Online Partner Support
    Get Secure! ¨C [url]www.microsoft.com/security[/url]
    This posting is provided "as is" with no warranties and confers no rights.

    Jacob Yang [MSFT] Guest

  4. #3

    Default Re: Detecting session time out in custom log in page

    > I have reviewed your issue. Due to the nature of your issue I need to do
    > additional research
    Jacob,

    While you're onto this, could you also advise about the converse - how to
    force a new SessionID and have it show up in the URL when operating in
    cookieless mode (see thread "Ending sessions when running in cookieless
    mode")?

    Thanks!!

    Lauchlan M


    Lauchlan M Guest

  5. #4

    Default RE: Detecting session time out in custom log in page

    Hi Steve,

    The TimeOut attribute here only make sense when we use non-persistent
    cookie for the form authentication. When it is timeout, the cookie has a
    null value which is same as a new login. We can't decide from it.

    Anyway, we may set a session variant when your user first logon, for
    example, record the logon in time. This can be an evidence when we check if
    it is a new login or get back from timeout.

    Luke
    Microsoft Online Support

    Get Secure! [url]www.microsoft.com/security[/url]
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)

    MSFT 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