Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9083271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:44:16+00:00 2026-06-16T20:44:16+00:00

I have a form that on load show login form on webbrowser. When user

  • 0

I have a form that on load show login form on webbrowser. When user login and then exit without loging out, it automatically logging him out on next start up and showing him again the login form. To logout from site 2 navigations needed but I don’t user to see that navigations, I want the browser to be white until all navigations complete or something similar.

bool f = true;

private void Form1_Load(object sender, EventArgs e)
{
    wbLoad.Navigate("http://login.uid.me/?site=dmysite&ref=http://mysite.ucoz.com/");
}

private void wbLoad_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
    if (f == true)
    {
        if (wbLoad.DocumentText.Contains("Sign up"))
        {
            wbLoad.Navigate("http://login.uid.me/?site=dmysite&ref=http://mysite.ucoz.com/");
            f = false;
        }
        else if (wbLoad.DocumentText.Contains("Log out"))
        {
            wbLoad.Navigate("http://mysite.ucoz.com/index/10");
            f = true;
        }
        else
        {
            wbLoad.Navigate("http://uid.me/logout/?mode=1&noajax=1");
            f = true;
        }
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T20:44:17+00:00Added an answer on June 16, 2026 at 8:44 pm

    Logging out means in most cases just removing cookies for current host. If it’s your case, you can do it by using javascript. Note, that this JS will remove cookies only for current host. You can call it in FormClosing event

    wbLoad.Navigate("javascript:void((function(){var a,b,c,e,f;f=0;a=document.cookie.split('; ');for(e=0;e<a.length&&a[e];e++){f++;for(b='.'+location.host;b;b=b.replace(/^(?:%5C.|[^%5C.]+)/,'')){for(c=location.pathname;c;c=c.replace(/.$/,'')){document.cookie=(a[e]+'; domain='+b+'; path='+c+'; expires='+new Date((new Date()).getTime()-1e11).toGMTString());}}}})())");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form that i want an administrator to fill out, then click
I have a very generic login form created that allows a user to access
I have a nested form in my app that uses AJAX to load an
I currently have form that checks if a user has unsubmitted changes when they
I have a form that the user submits and returns a result, but it
I have a form that I need to post and show the result in
I have a windows form application that needs to load a bunch of things
I have a user controller that checks to login a user. It has this
I have a login form that is using CI form validation. The form is
I have the following HTML/JS/jQuery Code. This code represents a login form that is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.