Use multiple web.config in one application
-
Hi Friends, I have two modules in my website. One is user end and other is the admin section. I want to implement form based authentication for both. In the web.config, I set the authentication to "Forms" and mentioned the loginURL i.e. login.aspx which is at root. But when I traverse the admin section pages, it still redirects me to the login of the user end. I want it to redirect to the login page of the administrator (adminLogin.aspx) Can i add a new web.config in admin part?????? If you know the answer ... please reply. Thanks,
Sushant Duggal.
-
Hi Friends, I have two modules in my website. One is user end and other is the admin section. I want to implement form based authentication for both. In the web.config, I set the authentication to "Forms" and mentioned the loginURL i.e. login.aspx which is at root. But when I traverse the admin section pages, it still redirects me to the login of the user end. I want it to redirect to the login page of the administrator (adminLogin.aspx) Can i add a new web.config in admin part?????? If you know the answer ... please reply. Thanks,
Sushant Duggal.
-
Hi Friends, I have two modules in my website. One is user end and other is the admin section. I want to implement form based authentication for both. In the web.config, I set the authentication to "Forms" and mentioned the loginURL i.e. login.aspx which is at root. But when I traverse the admin section pages, it still redirects me to the login of the user end. I want it to redirect to the login page of the administrator (adminLogin.aspx) Can i add a new web.config in admin part?????? If you know the answer ... please reply. Thanks,
Sushant Duggal.
You can put credentials to each user i.e. user or admin store along with login id and password so that from single login page you can make athentication as well as autherisation
-
You can put credentials to each user i.e. user or admin store along with login id and password so that from single login page you can make athentication as well as autherisation
can u tell me how to set the redirect URL for the site admin folder??? it redirects me to the login page of the user section.
Sushant Duggal.
-
You can put credentials to each user i.e. user or admin store along with login id and password so that from single login page you can make athentication as well as autherisation
can u tell me how to set the redirect URL for the site admin folder??? it redirects me to the login page of the user section. I added web.config in the folder, it gives error when i try to change the redirect URL.
Sushant Duggal.
-
Hi Friends, I have two modules in my website. One is user end and other is the admin section. I want to implement form based authentication for both. In the web.config, I set the authentication to "Forms" and mentioned the loginURL i.e. login.aspx which is at root. But when I traverse the admin section pages, it still redirects me to the login of the user end. I want it to redirect to the login page of the administrator (adminLogin.aspx) Can i add a new web.config in admin part?????? If you know the answer ... please reply. Thanks,
Sushant Duggal.
Hi sushant, Add new folder to your project, copy all forms related to admin module to that folder, Add another web.config for that folder and make changes according to your requirement. New web.config will override the functionality of rootfolder web.config. D.kiran Kumar reddy
-
Hi sushant, Add new folder to your project, copy all forms related to admin module to that folder, Add another web.config for that folder and make changes according to your requirement. New web.config will override the functionality of rootfolder web.config. D.kiran Kumar reddy
Hi Kiran, I did similar to what you said... but i cant add
again in the web.config which i recently added .. it generates error Thanks for ur further help, Sushant Duggal.
-
Hi sushant, Add new folder to your project, copy all forms related to admin module to that folder, Add another web.config for that folder and make changes according to your requirement. New web.config will override the functionality of rootfolder web.config. D.kiran Kumar reddy
Hi Kiran, I did similar to what you said... but i cant add
again in the web.config which i recently added .. it generates error Thanks for ur further help,
Sushant Duggal.
-
can u tell me how to set the redirect URL for the site admin folder??? it redirects me to the login page of the user section.
Sushant Duggal.
Response.Redirect("admin/adminlogin.aspx") :) Cheer
Pavan Pareta