Forms login and expired accounts !

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

  1. #1

    Default Forms login and expired accounts !


    If I have a forms login with persistant cookies how can I verify the
    account is not expired ?

    I want to run a piece of code everytime they come in no matter if they
    pass through the login or have a persistant login cookie.

    Is this possible ?

    Thank
    PL.


    PL Guest

  2. Similar Questions and Discussions

    1. Strange problem with Forms authentication: After successfull login, login page is still displayed
      Hi there I have a quite strange problem with my ASP.NET-Application. The application has being deployed one year ago and worked fine till last...
    2. Login without Forms authentication
      Hi! If I enable Forms authentication for a subdirectory in the web.config file, several types can't be loaded anymore (because the subdirectory...
    3. Forms authentication - login fails
      Hi, I have an ASP application using Forms authentication. On my development web server everything works and login is successful, but when I move...
    4. Login Forms
      want to add a "login" area to my site and was wondering if this can be done in Pub 2003. If so, can someone direct me to some instructions on how to...
    5. Mixing Forms Authentication with User Accounts in ASP.NET
      Put simply, I want to use a custom form where a user can enter their Windows Domain Account and password, and have that validated. i.e. I do not...
  3. #2

    Default Re: Forms login and expired accounts !

    The Application_AuthenticateRequest method is called with every request.
    Check the account status there.


    --

    Chris Rolon


    "PL" <pblse2@yahoo.se> wrote in message
    news:uxcW3gdEFHA.624@TK2MSFTNGP15.phx.gbl...
    >
    > If I have a forms login with persistant cookies how can I verify the
    > account is not expired ?
    >
    > I want to run a piece of code everytime they come in no matter if they
    > pass through the login or have a persistant login cookie.
    >
    > Is this possible ?
    >
    > Thank
    > PL.
    >
    >

    Chris Rolon Guest

  4. #3

    Default Re: Forms login and expired accounts !


    Thanks, I found that out shortly after making the post.

    PL.

    "Chris Rolon" <chris.rolon@removethis.neudesic.com> skrev i meddelandet news:%23cD6HcgEFHA.1188@tk2msftngp13.phx.gbl...
    > The Application_AuthenticateRequest method is called with every request.
    > Check the account status there.
    >
    >
    > --
    >
    > Chris Rolon
    >

    PL Guest

  5. #4

    Default Re: Forms login and expired accounts !


    Another issue I have is how to invalidate all persistant logins for
    the member if the password is updated.

    Obviously there is no problem on the computer/browser he is using when
    changing the password, I just call FormsAuthentication.SignOut() however if
    he also logged in on another computer he will still get in without entering the
    new password.

    The obvious solution would be to save the date and time the password was changed
    and compare it with when the ticket was created however I can't seem to find a
    way to get the time of creation ?

    PL.



    PL 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