Mono Support By Pass the User Authentication on Web Page (Closed)

Viewed 114271 time(s), 17 post(s), 10/12/2011 11:49:36 AM - by ashutosh0901
10/12/2011 4:45:59 PM
353 Reputation 46 Total posts

Please reply i need to do this by morning ...

11
10/12/2011 4:58:02 PM
7207 Reputation 956 Total posts

I'm not sure that I understand why are you redirecting the authenticated user to the login page at all. However, if you insist on this, you can alway hide the login module programatically:

if (Page.User.Identity.IsAuthenticated)
    ctlLogin.Visible = false;

12
10/12/2011 5:38:52 PM
353 Reputation 46 Total posts

Ok, Well user will come to my page first which is my login page once the login is successful user will be redirected to your default.aspx with already logged in...
thats all i wanted ....

Thank you for you time....I appreciate your help

13
10/12/2011 5:57:23 PM
353 Reputation 46 Total posts

user gets redirected to your page if the login to my page is successful but when it reaches to your default.aspx it never shows logged in it still says..."click here to log in" ....i have wrote all the code snippet mentioned here in login.aspx page ...but when i refresh your default.aspx or login.aspx it gets logged in and i dont want to refresh i want when user gets redirected to your login page it should get instantly logged in without refreshing



here "my" is My web page
and "your" means Monox page (default/login)

help if it possible..

14
10/12/2011 6:27:33 PM
7207 Reputation 956 Total posts

It is still a bit difficult to understand why are you redirecting to the login page. In any case, this is a two step-process: after you perform FormsAuthentication.SetAuthCookie, you HAVE TO perform a Response.Redirect to another or to the same page, so the authorization cookie could be refreshed.

If this doesn't work, we will have to see the full code of the MonoX page that has this code.

15
10/13/2011 3:43:17 AM
353 Reputation 46 Total posts

Well i am trying to merge my small application to your application for which i need to by pass the authentication. Let me try what you have suggested me

16
10/13/2011 3:52:21 AM
353 Reputation 46 Total posts

This solved my problem thank you

17
1 2
This is a demo site for MonoX. Please visit Mono Software for more info.