Forms Auth and FormsAuthentication.SignOut()Question

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

  1. #1

    Default Forms Auth and FormsAuthentication.SignOut()Question

    I'm using Form Auth.
    I 'm using the FormsAuthentication.SignOut() to sign out
    But when the user logins in and later logs out using
    FormsAuthentication.SignOut()
    When the user clicks the back button he is still authenticated on the PAGE
    why!!
    Is there anyway i can remove the cache or something..
    Any ideas?????
    Patrick.O.Ige Guest

  2. Similar Questions and Discussions

    1. FormsAuthentication.SignOut() problem
      Hi All, (thanks in advance for your time) I have a standard login.aspx page (UserName\Password). When the user successully sign in they are...
    2. FormsAuthentication.SignOut not working
      Hello This SignOut code is not working, any ideas? TIA. public class logout : System.Web.UI.Page { private void Page_Load(object sender,...
    3. FormsAuthentication.SignOut() not working.
      In my search to understand ASP.NET security, I went to www.asp.net and was looking at their beginner source code. Here is the link to the code that I...
    4. What is the purpose of FormsAuthentication.SignOut()?
      MSDN documentation says: Removes the authentication ticket. That's it. Where does it remove the authentication ticket from (server /...
    5. FormsAuthentication.signout does not ??
      I am using forms authentication to secure my pages. For my logout, I created a logout page with FormsAuthentication.signout is called at the...
  3. #2

    Default Re: Forms Auth and FormsAuthentication.SignOut()Question

    The back button on the Browser will only show the page that is already on
    the client, this makes you think that you are authenticated but infact you
    are not because you just did a "FormsAuthentication.SignOut();" , none of
    your code on the page that is caused by the "Back" button at this point is
    executed because the page itself has not been back to the server yet. Now,
    if you attempt to push a button that does something on the server, then you
    will be presented a proper Login page.

    John


    "Patrick.O.Ige" <PatrickOIge@discussions.microsoft.com> wrote in message
    news:CCF22CF5-3EBD-4850-BCD3-BCCF9F6E990C@microsoft.com...
    > I'm using Form Auth.
    > I 'm using the FormsAuthentication.SignOut() to sign out
    > But when the user logins in and later logs out using
    > FormsAuthentication.SignOut()
    > When the user clicks the back button he is still authenticated on the PAGE
    > why!!
    > Is there anyway i can remove the cache or something..
    > Any ideas?????

    WJ Guest

  4. #3

    Default Re: Forms Auth and FormsAuthentication.SignOut()Question

    ok then John.
    I would try that out.
    But do you have any idea how to have a role based Forms Authentication when
    using Active Directory as a data store.I want to validate my users against
    ROLES in the Active Directory..
    Thanks


    "WJ" wrote:
    > The back button on the Browser will only show the page that is already on
    > the client, this makes you think that you are authenticated but infact you
    > are not because you just did a "FormsAuthentication.SignOut();" , none of
    > your code on the page that is caused by the "Back" button at this point is
    > executed because the page itself has not been back to the server yet. Now,
    > if you attempt to push a button that does something on the server, then you
    > will be presented a proper Login page.
    >
    > John
    >
    >
    > "Patrick.O.Ige" <PatrickOIge@discussions.microsoft.com> wrote in message
    > news:CCF22CF5-3EBD-4850-BCD3-BCCF9F6E990C@microsoft.com...
    > > I'm using Form Auth.
    > > I 'm using the FormsAuthentication.SignOut() to sign out
    > > But when the user logins in and later logs out using
    > > FormsAuthentication.SignOut()
    > > When the user clicks the back button he is still authenticated on the PAGE
    > > why!!
    > > Is there anyway i can remove the cache or something..
    > > Any ideas?????
    >
    >
    >
    Patrick.O.Ige Guest

  5. #4

    Default Re: Forms Auth and FormsAuthentication.SignOut()Question


    "Patrick.O.Ige" <PatrickOIge@discussions.microsoft.com> wrote in message
    news:26EACC01-B5B6-41D6-BB33-F70A89038ECC@microsoft.com...
    > ok then John.
    > I would try that out.
    > But do you have any idea how to have a role based Forms Authentication
    > when
    > using Active Directory as a data store.I want to validate my users against
    > ROLES in the Active Directory..
    > Thanks
    >
    We donot allow AD integrated with IIS and Web based applications over
    internet. So as a result, I am not very familiar with this type of
    implementation. However, Google has a couple of good articles about this
    subject that may serve your needs. Here they are:

    [url]http://dotnet.org.za/stuartg/articles/1415.aspx[/url]

    [url]http://support.microsoft.com/kb/311495/EN-US/[/url]

    Hope you do well,

    John


    WJ Guest

  6. #5

    Default RE: Forms Auth and FormsAuthentication.SignOut()Question


    Hi Patrick..

    Pls find this article which throws light on different types of Forms based
    authentication..

    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secmod/html/secmod03.asp[/url]

    HTH

    With Best Regards
    Naveen K S

    "Patrick.O.Ige" wrote:
    > I'm using Form Auth.
    > I 'm using the FormsAuthentication.SignOut() to sign out
    > But when the user logins in and later logs out using
    > FormsAuthentication.SignOut()
    > When the user clicks the back button he is still authenticated on the PAGE
    > why!!
    > Is there anyway i can remove the cache or something..
    > Any ideas?????
    Naveen Guest

  7. #6

    Default Re: Forms Auth and FormsAuthentication.SignOut()Question

    Thanks John.
    Sorry i forgot to mention that its not internet but intranet!
    So the links u sent were good!
    But what 'm looking for is to actually use Active Directory as a datastore
    which i'm using and then perform authorisation that means the user in the
    domain can validate against roles(which is the same as Window Groups).
    So both my authentication and authorisation process would rely solely on
    Active Directory.
    What i want to know is how to create a GenericPrincipal object (or a custom
    IPrincipal object) and populate it with a set of roles obtained from a custom
    authentication data store like Active Directory
    Thanks all..

    "WJ" wrote:
    >
    > "Patrick.O.Ige" <PatrickOIge@discussions.microsoft.com> wrote in message
    > news:26EACC01-B5B6-41D6-BB33-F70A89038ECC@microsoft.com...
    > > ok then John.
    > > I would try that out.
    > > But do you have any idea how to have a role based Forms Authentication
    > > when
    > > using Active Directory as a data store.I want to validate my users against
    > > ROLES in the Active Directory..
    > > Thanks
    > >
    >
    > We donot allow AD integrated with IIS and Web based applications over
    > internet. So as a result, I am not very familiar with this type of
    > implementation. However, Google has a couple of good articles about this
    > subject that may serve your needs. Here they are:
    >
    > [url]http://dotnet.org.za/stuartg/articles/1415.aspx[/url]
    >
    > [url]http://support.microsoft.com/kb/311495/EN-US/[/url]
    >
    > Hope you do well,
    >
    > John
    >
    >
    >
    Patrick.O.Ige 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