[Session Management] State Server 管理 Session

The company plans to upgrade the operating system for all computers, introduced in the pre-preparation stage, during system testing, actually found ~~


The company plans to upgrade the operating system for all computers,

In the pre-preparation phase of importing, system testing,

Actually found ~~

Responsible for the online system, if after the upgrade from IE6 IE8 version,

After the kick will find the user account and password, the situation began to hit the wall of a ghost,

Login Home has been the case arise.

Write some test procedures, we discovered that the problem is Session,

Since the system is set using the Hardware NLB,

And page after login, and then there is another trigger to open a new window,

We found two windows of Physical Host IP is not the same,

Session can not be shared between two different Server.

Ever since, very hard to come and see if Google can refer to any lesson,

We found that, in fact, find many people encounter this problem.

The solution is to adopt Session Management,

Two main types of methods (1) Inproc (2) Outproc

Wherein Outproc was divided into two methods (a) State Server (b) SQL Server

Each method has its advantages and disadvantages of different.

I am currently selected State Server approach,

Many articles say to performance, the access speed to better than SQL Sever,

However, the State may have a larger memory requirements of Server,

So, on the line we have to look at From time to time memory on the State Server,

I still fear that they will get to hang a bunch of other colleagues in charge of the system.

Step Satae Server set approximately as follows:

(1) modifying the system registry using regedit

(2) find HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesaspnet_stateParametersPort into the AllowRemoteConnection 1

PS1. Depending need to modify the Port Number (default is 42424)

. PS2 Port should pay attention to the firewall settings, like me, is Internet -> Intranet, you need to change your settings

(3) to [service], the [ASP State Service] is set to start

  • Setting two sets AP WebConfig

    mode="StateServer"

    stateConnectionString="tcpip=Server ip:42424"

    stateNetworkTimeout="10"

    cookieless="false"

    timeout="20"

    />

PS1.cookieless also to choose according to their own conditions

PS2. The two have to remember the Machine Key set the same, only with a uniform set of rules to access the data of State Server

  • Reference website:

Config Parameter Description

http://msdn.microsoft.com/zh-tw/library/h6bb9cz9(VS.80).aspx

I do not know the future, this will not encounter a similar situation, or recorded ~~

After that, there is always a place to re-inspection.

Original: Large column  [Session Management] State Server Management Session


Guess you like

Origin www.cnblogs.com/chinatrump/p/11505537.html