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 (Closed) (Mono Support )

Viewed 108551 time(s), 17 post(s) 10/12/2011 11:49:36 AMby ashutosh0901

Related topics

ashutosh0901

ashutosh0901

10/12/2011 4:45:59 PM
Please reply i need to do this by morning ...
This content has not been rated yet. 
353 Reputation 46 Total posts
denis

denis

10/12/2011 4:58:02 PM

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;
Rated 5.00, 1 vote(s). 
7207 Reputation 956 Total posts
ashutosh0901

ashutosh0901

10/12/2011 5:38:52 PM
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
This content has not been rated yet. 
353 Reputation 46 Total posts
ashutosh0901

ashutosh0901

10/12/2011 5:57:23 PM
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..
This content has not been rated yet. 
353 Reputation 46 Total posts
denis

denis

10/12/2011 6:27:33 PM
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.
Rated 5.00, 2 vote(s). 
7207 Reputation 956 Total posts
ashutosh0901

ashutosh0901

10/13/2011 3:43:17 AM
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
This content has not been rated yet. 
353 Reputation 46 Total posts
ashutosh0901

ashutosh0901

10/13/2011 3:52:21 AM
This solved my problem thank you
This content has not been rated yet. 
353 Reputation 46 Total posts
1 2