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 8920569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:18:21+00:00 2026-06-15T06:18:21+00:00

Hi guys a have a code­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­: namespace WindowsFormsApplication1 { public partial class Form1 :

  • 0

Hi guys a have a code­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­:

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        public bool od_auth(string login, string pass)
        {
            var cook­ies = new CookieContainer();
            request.CookieContainer = cookies;

            if (response.Headers["Location"] != null)
            {
                return true;
            }
            else
            {
                return false;

            }
        }

        public bool od_info_changer()
        {
            request.CookieContainer = cookies;
            if (response.Headers["Location"].IndexOf("st.cmd=userSettings") != -1)
            {
                return true;
            }
            else
            {
                return false;
            }

        }

        private void Auth_Click(object sender, EventArgs e)
        {
            string login = textBox1.Text;
            string pass = textBox2.Text;
            bool avt = od_auth(login, pass);
            bool change = od_info_changer();
            if (avt == true)
            {

            }
            else
            {
            }
            if (change == true)
            {
            }
            else
            {
            }

        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }
    }
}

I have to­­­­­­­­­­­­­­­­­­­­­­­­­ use in "public bool od_info_changer()" the var cookies from public bool od_auth(string login, string pass).
How can I do it?­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­

  • 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-15T06:18:22+00:00Added an answer on June 15, 2026 at 6:18 am

    Don’t use var in this case and make cookies a field:

    namespace WindowsFormsApplication1
    {
        public partial class Form1 : Form
        {
            private CookieContainer cookies;
    
            public Form1()
            {
                InitializeComponent();
            }
    
            public bool od_auth(string login, string pass)
            {
                cook­ies = new CookieContainer();
                request.CookieContainer = cookies;
    
                if (response.Headers["Location"] != null)
                {
                    return true;
                }
                else
                {
                    return false;
    
                }
            }
    
            public bool od_info_changer()
            {
                request.CookieContainer = cookies;
                if (response.Headers["Location"].IndexOf("st.cmd=userSettings") != -1)
                {
                    return true;
                }
                else
                {
                    return false;
                }
    
            }
    
            private void Auth_Click(object sender, EventArgs e)
            {
                string login = textBox1.Text;
                string pass = textBox2.Text;
                bool avt = od_auth(login, pass);
                bool change = od_info_changer();
                if (avt == true)
                {
    
                }
                else
                {
                }
                if (change == true)
                {
                }
                else
                {
                }
    
            }
    
            private void Form1_Load(object sender, EventArgs e)
            {
    
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hie guys i need help with my code. I have a form where a
Rather basic question here guys. Basically I have code like this: public SuperPanel() {
I have some code: public class Foo { private HttpClient httpClient; public Foo() {
Hi guys I have the following code and and I want it to last
Hi guys I have my endless page js code working great but for some
Hi guys i have a problem i my code i set a datepicker with
Hey guys have her an code where i add an option to a html
I have this code: private void removeDuplicates(List<string> currentSites, List<string> visitedSites) { for (int i
guys, I have the following code, but I'm getting error at compiling time... the
guys i have seen following code in internet select round(abs(months_between(sysdate,add_months(hire_date,12*(round((months_between(sysdate,hire_date)/12))))))) from employees unfortunately there

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.