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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:37:07+00:00 2026-05-31T05:37:07+00:00

I have four different server and a load balancer. I want to use captcha

  • 0

I have four different server and a load balancer. I want to use captcha control. I did something with it this way:

I created a handler.ashx to create the captcha image. This handler is used in the Main page. I keep the captcha control password in session while creating the captcha control. Then I compared password typed by the user with the password in the session. It works very well, but only on one server.

It doesn’t run correctly with four servers. Although the user enters the correct password every time, it sometimes matches with the session password and sometimes doesn’t match. I think the problem reason is this:

For Example :

A,B,C and D are the four servers. The load balancer routes the first request to A server. Which opens the main page from A server and creates password ‘123456’. This is stored in session on A server. Then user typed in the password and clicked button. Now the load balancer routes this request to the B server. Because session in B Sever is null, the passwords don’t match.

My web.config has this,

<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424"/>

But It still doesnt work.

What should I do ?

  • 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-05-31T05:37:09+00:00Added an answer on May 31, 2026 at 5:37 am

    So first thing (just to make sure) – I believe that this connection string is just an example because 127.0.0.1 is localhost and it wouldn’t have chance to work ;).

    Now I will assume that you have chosen server A for you state server. Please check following things:

    • “ASP.NET State Service” is up and running on the server A (it’s disabled by default, you can check that in Administrative Tools –> Services)
    • the stateConnectionString in servers B, C and D is “tcpip=[Server A IP Address or Network Name]:42424” (it can be 127.0.0.1 only on server A)
    • servers can communicate between each other using TCP/IP via port 42424 (firewalls etc.)

    Please remember that if you have changed configuration of “ASP.NET State Service” on server A to not use default port (42424), you must reflect that in your connection strings.

    Sometimes it’s easier to configure “SQL Server Mode” instead of “State Server Mode” so you might want to consider that. You can find more details here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a program with four different buttons. I want to interchange the position
Imagine i have this HTML snippet 4 times over for four different sections of
Ok I have four parameters in the url xxx.html?p1=something&p2=else&p3=here&p4=too And I have five different
I currently have four different servers all with many databases on them. Each server
I have four different lists. headers , descriptions , short_descriptions and misc . I
How can I store arrays in single array? e.g. I have four different arrays,
I have a page that needs to combine data from four different webrequests into
I have four tables containing exactly the same columns, and want to create a
I have a backbone application which, upon load, needs to fetch data from four
I have four different Business objects and each calls its corresponding FillBusinessObject method to

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.