Re: Forms Authentication - context changing
From: Paul Glavich [MVP ASP.NET] (glav_at_aspalliane.com-NOSPAM)
Date: 02/10/05
- Next message: sivashankar: "Re: posting 2 or more values"
- Previous message: bala: "Help required with file open web control"
- In reply to: Grzegorz Kaczor: "Forms Authentication - context changing"
- Next in thread: Grzegorz Kaczor: "Re: Forms Authentication - context changing"
- Reply: Grzegorz Kaczor: "Re: Forms Authentication - context changing"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 10 Feb 2005 22:45:39 +1100
I am not entirely sure that I have read your query right, but Forms Auth
works via the cookie (generally, if you using the default web.config
settings ie. cookieless=false) and the cookie is stored/named according to
your host name. So, if site A is http://SiteA and site b is http://SiteB
then the authentication will not carry across to each app.
If you do as you suggested, and make one site a sub-directory of the other
(and even a new virtual directory if you wish) then each site is accessed
using the same host name ie. http://SiteA and
http://SiteA/YourOtherDirectory and the cookie should be available to both
sites, thus you should not have to er-authenticate.
-- - Paul Glavich ASP.NET MVP ASPInsider (www.aspinsiders.com) "Grzegorz Kaczor" <grzegorz.kaczor@cc.com.pl> wrote in message news:cuf6c5$o6c$1@nemesis.news.tpi.pl... > Hello, > > I have an ASP.NET application in my website in virtual folder A. > This folder contains the application itself. I also have a data virtual > directory B which contains data that can be seen by authenticated users. > > I've implemented forms authentication (with application in folder > A) in a standard way. I've also set up a redirection in IIS so that > every request concerning folder B (for example GET /B/a/b/c) is > redirected to A/GetFile.aspx (so the final request is > A/GetFile.aspx/a/b/c). This way I can protect contents of the B folder > with forms authentication. > > Now I use the A application to find interesting documents in folder > B. I find them and get a list of links, starting with /B... . I click on > one of them and _I have to authenticate once again_ to get access to > that file. > > Is it possible to perform a redirect in the same authentication > context? > > Shall the problem occur if I make B be a subdirectory of A? > > Thanks > Grzegorz Kaczor
- Next message: sivashankar: "Re: posting 2 or more values"
- Previous message: bala: "Help required with file open web control"
- In reply to: Grzegorz Kaczor: "Forms Authentication - context changing"
- Next in thread: Grzegorz Kaczor: "Re: Forms Authentication - context changing"
- Reply: Grzegorz Kaczor: "Re: Forms Authentication - context changing"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|