Ask a Question related to ASP.NET Security, Design and Development.
-
slawek xxxxx #1
Form Authentication
Hello everyone,
I have found a problem with form authentication method that I can't
solve. The problem is:
I want to use a form authentication in my application, so i set :
<authentication mode="Forms">
,and
<forms name="LoginForm" loginUrl="SM_LoginPage.aspx" protection="All">
but the structure of my application folders is following:
root
|
+CommonPages
| + loginPage.aspx
|
+SysPages
| + Sys1Pages
| | +Page1.aspx
| + Sys2Pages
| +Page2.aspx
+ OtherPages
+ Page3.asp
Because of this structure the relative path of LoginPage.aspx is
diffrent for Page1.aspx(../../CommonPages/loginPage.aspx) and Page for
page3.aspx(../CommonPages/loginPage.aspx). I have to set this path in
web.config and I want to use relative path (not [url]http://.[/url]....). Is there
any way to do this?? (sth like {root}//CommonPages/loginPage.aspx)??
Thanks for any help
Best Regards
Slawek
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
slawek xxxxx Guest
-
Form Authentication Ticket
I've read some books and online articles on how to implement form authentication. Some taught me just to do... -
Form Authentication with SSL
If I use form authentication with SSL with my web application, when I access my login page, I will go to https://www.mydomainname.com/login.aspx.... -
authenticate win32 form client with form based authentication web services
(Type your message here) -------------------------------- From: kitchai yong Hi, Can you tell me how i authenticate the win32 form client... -
Problems with form authentication
I'm experiencing some problems with role-based forms authentication accross domain. I wanted to create an unique login page for multiple web server... -
Uses ASP.NET form authentication across projects?
Basically this needs to be done so that: a) synchronize <machineKey> elements in web.config for all applications b) synchronize <authentication>... -
David Banister #2
RE: Form Authentication
slawek,
Try putting loginUrl="/CommonPages/loginPage.aspx".
Hope that helps,
David Banister
David Banister Guest
-
Anil #3
Form Authentication
Hi All,
We will be using form authentication in out website. We have two totally
different types of users in our site.
Type 1
Has 2 different roles in it
Type 2
Has 3 different roles in it
The data we collect for Type 1 is very different than Type 2.
That's why, we want to use two different forms authentication at our site.
Just wanted to know is it possible to do it in dot net for a single website.
Please let me know how to do it. If someone has sample code, please send it.
Thanks in Advance,
Anil
Anil Guest
-
ranganh #4
RE: Form Authentication
Dear Anil,
You don't need to use two different authentication's for accomplishing this.
You can use role based authorization and set all the functionalities for the
different roles you mentioned in your post.
Check my Article on Role based authorization in the following URL. It might
help you.
[url]http://aspnet_harish.blogspot.com/2004/11/setting-role-cookie-at-application.html[/url]
It has the code to set the authentication and then play with authorization
to show and perform different actions based on user's roles.
Thanks.
"Anil" wrote:
> Hi All,
>
> We will be using form authentication in out website. We have two totally
> different types of users in our site.
>
> Type 1
> Has 2 different roles in it
>
> Type 2
> Has 3 different roles in it
>
>
> The data we collect for Type 1 is very different than Type 2.
>
> That's why, we want to use two different forms authentication at our site.
> Just wanted to know is it possible to do it in dot net for a single website.
>
> Please let me know how to do it. If someone has sample code, please send it.
>
> Thanks in Advance,
> Anil
>
>
>
>ranganh Guest



Reply With Quote

