Re: cookieless Forms Authentication - please help...



studio60podcast@xxxxxxxxx wrote:
I'm writing an ASP.NET 2.0 application using the new Membership
providor and I'm having trouble.
I have created the roles, logins, login controls, etc... and I can log

in to the site. However, as soon as I'm successfully
authenticated, I 
click on a link and it challenges me for
credentials again! Doesn't 
matter which links I click, they all do
it.
I'm also having trouble with cookies. I want to use cookies, but I

can't get them to work in either IE7 or IE6. Here is my

<authentication> section from web.config:
<authentication mode="Forms"> 
<forms loginUrl="login.aspx"
defaultUrl="/default.aspx" 
name="secAuthCookie" cookieless="UseUri"
protection="All" 
slidingExpiration="true" timeout="90" path="/"
/> 
</authentication>
I've tried setting cookieless to all of it's possible values,

UseCookies, UseUri, AutoDetect, etc... and none of them are working.

Am I missing something? Please help! I've been stuck on this for
two 
days now! Thanks! 
Jason


Does your application use hardcoded urls back to the webserver? Or javascript location changes you've written yourself?

In that case you need to make sure that these calls copy the authentication token into the uri before redirecting.

Jesse Howuing
.



Relevant Pages

  • cookieless Forms Authentication - Please Help...
    ... providor and I'm having trouble. ... I have created the roles, logins, login controls, etc... ... I'm also having trouble with cookies. ...
    (microsoft.public.dotnet.framework.aspnet)
  • cookieless Forms Authentication - please help...
    ... providor and I'm having trouble. ... I have created the roles, logins, login controls, etc... ... I'm also having trouble with cookies. ...
    (microsoft.public.dotnet.general)
  • cookieless Forms Authentication - please help...
    ... providor and I'm having trouble. ... I have created the roles, logins, login controls, etc... ... I'm also having trouble with cookies. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Where does ASP.NET Membership store the information?
    ... I am relatively new to the ASP.NET 2.0 Login controls, ... trouble figuring out exactly what I need to add to my Web.config file. ... Where do the Login controls store the user registrations (I realize that ... this can be different depending on the membership provider specified in ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: sockets and http question
    ... Michael Evanchik wrote: ... i have microsofts pre made object but was having ... > trouble with cookies etc see ...
    (microsoft.public.dotnet.languages.csharp)