(asp.net)�P(gu��n)��SessionState�c���л���һ�c(di��n)��Ӗ(x��n)- ̓�M���C(j��)���},̓�M���C(j��)����ע��-��Ҋ���},̓�M���C(j��),�W(w��ng)�����,����ע��,���C(j��),��I(y��)�]��,��퓿��g,��(g��)�����,�W(w��ng)�j(lu��)��(sh��)��,���C(j��)�й�,�W(w��ng)վ���O(sh��),����">

局长含着秘书的小奶头_让女生荷尔蒙飙升的三种行为_中年夫妇大白天啪啪_漂亮人妻办公室里沦陷_女性下面摸起来有很多疙瘩_免费+国产+在线_女特务还是黄花大闺女_欧美视频三a片在线播放_免费毛片a在线观看

  ̓MC(j)ע-Ҋ} ̓MC(j)} ̓MC(j)}


(asp.net)P(gun)SessionStatecлһc(din)Ӗ(xn)
ߣ
ܺεĖ|,?yn)ڌW(xu)(x),ӛ.

,һ(g)ُ{(ln)r(sh),һ(g)ԶxCartManager(g)M(jn)Session,IJִa,䌍(sh)һ(g)PrivateArrayListɆT_cartÁCartInfo(sh),CartInfoְһ(g)ɆTProductInfo _productһ(g)double _moneny...(f)s.Ҷ]ŪκSerializableĖ|,...

C(j){(dio)ԇ]},ŵ(w)υsl(f)F(xin)@(g)ُ܇F(xin)dz֮,r(sh)Õr(sh),XúSessionĖ|yú,Еr(sh)ܴM(jn)ȥЕr(sh)治M(jn)?

^˱C(j)c(w)ĭh(hun),֪}϶cSessionStateP(gun).?yn)?w)Web Farm(ҌM(jn)̔(sh)O(sh)ó10).

һ҂һ(g)WEB Applicationĕr(sh),SessionStateMode=InProc,ɅҊweb.configļе

<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>
ڷ(w),?yn)ڶ(g)M(jn),ҪČij mode=StateServer,t͕(hu)ǰfSessionеֵ_ĬF(xin).,ε@Ӹһ,ϵy(tng)ֈ(bo)e(cu)fStateServer SqlServerɷNʽ(hu)ԒB(ti),Ҫǿл()...҂߀Ҫٌһ¿л•.

ҪČܺ,ɻͽMɵ,ֻҪ•һŒԼ,:

[Serializable()]
public class ProductInfo {

private string f_SysID;


public string SysID {
get {
return this.f_SysID;
}
set {
this.f_SysID = value;
}
}

ڱCartInfo c ProductInfoɂ(g)@•һ£ֻCartManagerԶ׾Ԓ£


[Serializable]
public class CartManager : ISerializable
{
private ArrayList _cart=new ArrayList();

public CartManager()
{
}

protected CartManager(SerializationInfo info, StreamingContext context)
{
this._cart=(ArrayList)info.Getvalue("_cart",typeof(ArrayList));
}

void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
{
info.Addvalue("_cart",this._cart);
}

private CartInfo findCartInfo(string sid)
{
foreach(CartInfo ci in this._cart)
{
if( ci.Product.SysID.Equals(sid) ) return ci;
}
return null;
}


public ArrayList getCart()
{
return this._cart;
}


@ӌ(sh)F(xin)(g)CartManager--CartInfo--ProductInfoĿл•,Ǿһ...


³ԣ
http://www.cnblogs.com/sharetop/archive/2005/10/08/250286.html



Դ
x9888
ڣ2007/3/29

pL   ]   ղ   ӡ   P(gun)] w С  
һƪҊg(sh)ZB
һƪ̓MC(j)_URLrewriteܵķB
  >> P(gun)
 
Hi~ҁ

QQھԃ
(w)r(sh)g9:00-24:00

ͷԒ
(w)ᾀ

0756-2286686

(w)ᾀ
(w)r(sh)g9:00-24:00

0756-2286686

18088821504

΢Ź̖
΢̖aitiandongli

(dng)С
R֪ƒ(yu)ݴNϢ