MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

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

116061 put(a) pogledan, 17 odgovor(a) 12.10.2011. 11:49:36Kreirao(la) ashutosh0901

Povezane teme

ashutosh0901

ashutosh0901

12.10.2011. 16:45:59
Please reply i need to do this by morning ...
Ovaj sadržaj još nije ocijenjen. 
353 Reputacija 46 Ukupno objava
denis

denis

12.10.2011. 16:58:02

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;
Ocjena 5,00, 1 glas(ova). 
7207 Reputacija 956 Ukupno objava
ashutosh0901

ashutosh0901

12.10.2011. 17:38:52
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
Ovaj sadržaj još nije ocijenjen. 
353 Reputacija 46 Ukupno objava
ashutosh0901

ashutosh0901

12.10.2011. 17:57:23
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..
Ovaj sadržaj još nije ocijenjen. 
353 Reputacija 46 Ukupno objava
denis

denis

12.10.2011. 18:27:33
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.
Ocjena 5,00, 2 glas(ova). 
7207 Reputacija 956 Ukupno objava
ashutosh0901

ashutosh0901

13.10.2011. 3:43:17
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
Ovaj sadržaj još nije ocijenjen. 
353 Reputacija 46 Ukupno objava
ashutosh0901

ashutosh0901

13.10.2011. 3:52:21
This solved my problem thank you
Ovaj sadržaj još nije ocijenjen. 
353 Reputacija 46 Ukupno objava
1 2