Ask a Question related to ASP.NET Security, Design and Development.
-
smita #1
Re: FormsAuthentication using xml file
Hi Andrea,
Thanx for the link to the article ...It was really useful...but again i
have a question which remains unanswered...Please can u help me with that..
If my user is authenticated the
FormsAuthentication.RedirectFromLoginPage() takes me to default.aspx...but
what i want is if the user who is authenticated is an administrator he shud
be directed to a page called AdminOptions.aspx but if the user who is
authenticated is not an administrator then he shud be directed to some other
page ...say XYZ.aspx....I cannot have two Default.aspx pages...Then how can
i specify these page redirections..instead of using only Default.aspx.
Any advice wud be helpful..
Thanx:-)
regards,
smita.
smita Guest
-
FormsAuthentication
Hi, i am using forms authentication in an ASP.NET project I am setting the Forms authentication cookie by using:... -
BUG With FormsAuthentication
The authentication cookie with custom user is not available or the user data is gone after a redirect. In other words all the examples on the net on... -
FormsAuthentication with Machine Name
I had licked this problem once and it resurfaced and won't go away. When I browse to a site with my machine name FormsAuthetication appears to... -
FormsAuthentication.signout does not ??
I am using forms authentication to secure my pages. For my logout, I created a logout page with FormsAuthentication.signout is called at the... -
FormsAuthentication - Changes in .Net Framework 1.1!?
I am not sure what is causing this problem but I ran into it before. I did not spend time trying to solve it since we are still working in 1.0... -
Hernan de Lahitte #2
Re: FormsAuthentication using xml file
Hi,
I don't know if I'm missing something here but you can redirect to the page
you want to (a simple Response.Redirect() ) based on the result of
User.IsInRole( [Admin] ) or the IsInRole() method of whatever implementation
of IPrincipal you have, instead of using
FormsAuthentication.RedirectFromLoginPage().
--
Hernan de Lahitte
Lagash Systems S.A.
[url]http://www.lagash.com[/url]
"smita" <smita@rarefind.com> wrote in message
news:#l3vHtK5DHA.1504@TK2MSFTNGP12.phx.gbl...i> Hi Andrea,
>
> Thanx for the link to the article ...It was really useful...but againthat..> have a question which remains unanswered...Please can u help me withshud> If my user is authenticated the
> FormsAuthentication.RedirectFromLoginPage() takes me to default.aspx...but
> what i want is if the user who is authenticated is an administrator heother> be directed to a page called AdminOptions.aspx but if the user who is
> authenticated is not an administrator then he shud be directed to somecan> page ...say XYZ.aspx....I cannot have two Default.aspx pages...Then how> i specify these page redirections..instead of using only Default.aspx.
>
> Any advice wud be helpful..
> Thanx:-)
> regards,
> smita.
>
>
Hernan de Lahitte Guest



Reply With Quote

