Re: Forms based security without cookies?
From: Beth Breidenbach (bbreidenbach@mindspring.com)
Date: 08/27/02
- Next message: Alex Kudakov: "Problems depoloying application to another web site"
- Previous message: John Saunders: "Re: Forms Authentication: Storing UserData in the "FormsCookieName" Cookie"
- In reply to: Eric: "Re: Forms based security without cookies?"
- Next in thread: Fouad Daniëls: "Re: Forms based security without cookies?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Beth Breidenbach" <bbreidenbach@mindspring.com> Date: Mon, 26 Aug 2002 22:15:03 -0700
There are two flaws in the article's discussion of cookieless
authentication. I can say that without offending the author since she's me.
:-)
First, as Eric points out, you need to remember to programatically append
the authentication parameter to each call to the secured forms. The
FormsAuthenticationModule will pick up the URL parameter and handle it as it
would a cookie-provided authentication ticket.
Second, just to clarify: cookieless authentication doesn't mean that
ASP.NET won't attempt to write a cookie to the browser. It'll try, and if
the client's browser accepts it then you're in a "cookied" authentication
mode. It's only if the client browser didn't accept the cookie that the URL
parameter comes into play. This can create some confusion when you're
testing... :-) Andy Wigley posted some code to
microsoft.public.dotnet.framework.aspnet.mobile on 5/12/02 that you can put
into your secured pages to force the URL check for your development testing
purposes. (Note that while Andy mentions putting the code in page_login it
should actually be placed in page_load.)
Hope this helps,
Beth Breidenbach
"Eric" <fish11@earthling.net> wrote in message
news:#bVMm6cSCHA.1776@tkmsftngp12...
> Hi, I think I can help you.
>
> Formbased security without cookies is tricky.
> Read first this:
> http://www.aspnetpro.com/features/2002/08/asp200208bb_f/asp200208bb_f.asp
> There are some hints, but not all.
>
> For ex. this function "FormsAuthentication.RedirectFromLoginPage(sUser,
> False)" , you can't use.
> It will always try to store a cookie.
> The trick is, to send for every page your authentication ticket not as
> cookie but as parameter for the URL. (read the article).
> Also important is, to add this special parameter to the url for every page
> and with the same name like the cookie name. I think the
FormsAuthentication
> Module will look for this parameter in the url automatically.
>
> I don't understand, why Microsoft haven't add a chapter to the
documentation
> about this point.
>
> I hope this helps
> Eric
>
>
>
>
- Next message: Alex Kudakov: "Problems depoloying application to another web site"
- Previous message: John Saunders: "Re: Forms Authentication: Storing UserData in the "FormsCookieName" Cookie"
- In reply to: Eric: "Re: Forms based security without cookies?"
- Next in thread: Fouad Daniëls: "Re: Forms based security without cookies?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|