Forms Auth not recognizing cookie on return to site (1.1)
From: Cy Huckaba (cyh_at_delete.t-3.com)
Date: 04/29/03
- Next message: John McD: "Formsauthentication - Page_Load problem"
- Previous message: Alek Davis: "Re: 'Illegal key size for this algorithm"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 29 Apr 2003 12:05:09 -0500
I recently upgraded to .Net 1.1 and ran into this problem. I had no problems
with my forms auth code with 1.0.
A user can come in a login against a DB and set a cookie (persists it as
well) and be fine for the rest of the session. When the user comes back they
don't get logged in and they don't even get redirected to the correct login
page.
They app is setup as a virtual web under the root website. My site consists
of one root and a virtual web for each client.
The root website is configured for None as the authentication type with
allow users="*". No real security here. Each site has it's own web.config
file pointing to a login page inside the vir web.
<forms path="/acme" loginUrl="/acme/login.aspx" timeout="30"></forms>
The login page handles the login for the virtual web and sets the cookie if
the user chooses.
Everything works fine everytime I come back if I don't choose to persist the
cookie. When I test the login after choosing to persist the cookie I get
redirected to a login page off of the root website ... /login.aspx. This
doesn't exist, so it's basically a asp.net 404 error description stating
server error in "/" app...not even the right subweb.
I tried to remove the IsolateApps attribute in the machine.config keys that
I saw in previous postings, but that didn't seem to make a difference.
Any Ideas?
Cy Huckaba
Austin, TX
- Next message: John McD: "Formsauthentication - Page_Load problem"
- Previous message: Alek Davis: "Re: 'Illegal key size for this algorithm"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|