Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

asp.net session ½éÉÜÒ»ÈýÖÖSession´æ´¢·½Ê½

asp.net session ½éÉÜÒ»ÈýÖÖSession´æ´¢·½Ê½
www.firnow.com¡¡Ê±¼ä£º2009-03-04¡¡×÷Õß:ÄäÃû ±à¼­:sky µã»÷£º¡¡1478 [ÆÀÂÛ]
¶ÔÓÚasp.netµÄ³ÌÐòÀ´Ëµ£¬sessionÊÇÒ»¸ö±ØÐèÒªÁ˽âµÄ¶ÔÏó¡£
ÏÂÃæ¾Í¶Ôsession×öÒ»¸ö¾ßÌå½éÉÜ¡£
¼òµ¥À´Ëµ£¬Session¾ÍÊÇ·þÎñÆ÷¸ø¿Í»§¶ËµÄÒ»¸ö±àºÅ£¬µ±Ò»Ì¨web·þÎñÆ÷ÔËÐÐʱ£¬¿ÉÄÜÊÇÓжà¸öÓû§¶¼ÔÚä¯ÀÀÕą̂·þÎñÆ÷ÉϵÄÍøÕ¾£¬µ±Ã¿¸öÓû§Ê×´ÎÓëÕą̂·þÎñÆ÷½¨Á¢Á¬½Óʱ£¬Ëü¾ÍÓëÕâ¸ö·þÎñÆ÷½¨Á¢ÁËÒ»¸öSession£¬Í¬Ê±·þÎñÆ÷¾Í»á×Ô¶¯ÎªÆä·ÖÅäÒ»¸öSessionId,ÓÃÒÔ±êʶÕâ¸öÓû§µÄΨһÉí·Ö£¬Õâ¸öSession¾ÍÊÇÓзþÎñÆ÷Ëæ»ú²úÉúµÄÒ»¸öÓÉ24¸ö×Ö·û×é³ÉµÄ×Ö·û´®¡£
         Õâ¸öΨһµÄSessionId»¹ÊÇÓкܴóµÄʵ¼ÊÒâÒ壬µ±Ò»¸öÓû§Ìá½»±íµ¥Ê±£¬ä¯ÀÀÆ÷¾Í»á½«Óû§µÄSessionId×Ô¶¯¸½¼ÓÔÚHTTPÍ·ÐÅÏ¢ÖУ¬µ±·þÎñÆ÷´¦ÀíÍêÕâ¸ö±íµ¥ºó£¬¾Í»á½«½á¹û·µ»Ø¸øSessionIdËù¶ÔÓ¦µÄÓû§¡£
          ÈçÏÂÊÇWeb.configÈçºÎÅäÖÃSessionµÄ£º
           <configuration>
  <system.web>
    <sessionState mode=" Off | InProc | StateServer | SQLServer "
                       cookieless=" true | false "
                       timeout=" number of minutes "
                       stateConnectionString=" tcpip=server:port "
                       sqlConnectionString=" sql connection string "
                       stateNetworkTimeout=" number of seconds " />
  </system.web>
</configuration>
ÆäÖи÷¸ö½ÚµãÊôÐÔ£º
mode: SessionµÄ´æ´¢·


Ïà¹ØÎĵµ£º

iis6½â¾öÔËÐÐasp.net mvc

ÅäÖÃiis6½â¾öÔËÐÐasp.net mvcÏîÄ¿“ÎÞ·¨ÕÒµ½¸ÃÒ³”µÄ´íÎó
ÔÚiis6ÔËÐÐasp.net mvc ÏîĿʱ£¬Èç¹û³öÏÖ“ÎÞ·¨ÕÒµ½¸ÃÒ³”µÄÌáʾ£¬¼´404´íÎó£¬ÄÇôÓпÉÄÜÊÇiisûÓÐÉèÖú㬰´ÏÂÃæ²Ù×÷¿ÉÒÔ½â¾ö£º
´ò¿ªiis¹ÜÀíÆ÷£¬ÓÒ»÷ÏàÓ¦µÄÍøÕ¾½Úµã£¬Ñ¡Ôñ“ÊôÐÔ”¿ì½Ý²Ëµ¥£¬µ¯³öÊôÐÔ¶Ô»°¿ò£¬Ñ¡Ôñ“Ö÷Ŀ¼&rd ......

ASP.NETÒ³ÃæÌøתÓÐʲô·½·¨ÄØ£¿

ASP.NETÒ³ÃæÌøתÓÐʲô·½·¨ÄØ£¿£¬ÏÖÔÚ¸ø´ó¼Ò½éÉÜÈýÖÖ·½·¨£¬ËûÃǵÄÇø±ðÊÇʲôÄØ£¿ÈÃÎÒÃÇ¿ªÊ¼°É£º
ASP.NETÒ³ÃæÌøת1¡¢response.redirect Õâ¸öÌøתҳÃæµÄ·½·¨ÌøתµÄËٶȲ»¿ì£¬ÒòΪËüÒª×ß2¸öÀ´»Ø(2´Îpostback)£¬µ«Ëû¿ÉÒÔÌø תµ½ÈκÎÒ³Ã棬ûÓÐÕ¾µãÒ³ÃæÏÞÖÆ(¼´¿ÉÒÔÓÉÑÅ»¢Ìøµ½ÐÂÀË)£¬Í¬Ê±²»ÄÜÌø¹ýµÇ¼±£»¤¡£µ«ËÙ¶ÈÂýÊÇÆä×î´óȱÏÝ ......

ASP.NETÒ³ÃæÉúÃüÖÜÆÚ


ÓкܶàÀíÓÉÈ¥½âÊÍÀí½âASP.NETÒ³ÃæÉúÃüÖÜÆÚÊǷdz£ÖØÒªµÄ£¬Ö÷ÒªÊÇҪȥÀí½âʲôµØ·½·ÅÖÃʲôÌض¨µÄ·½·¨£¬Ê²Ã´Ê±ºòÎÒÃÇÓ¦¸ÃÉèÖÃʲôÏà¹ØµÄÊôÐÔ¡£Èç¹ûÈ¥¿ª·¢×Ô¶¨ÒåµÄ·þÎñÆ÷¿Ø¼þ£¬Àí½âÉúÃüÖÜÆÚ¶Ô¾ÀÕý¿Ø¼þ³õʼ»¯Ê±ºòµÄ´íÎó£¬ÒÔ¼°Ê¹ÓÃview-stateºÍºǫ́´úÂëÉèÖÃÊôÐÔÊǷdz£ÓÐÓõġ££¨¿Ø¼þʼþÖ»ÓëASP.NETÒ³ÃæÏà¹Ø£©
  &n ......

¹ØÓÚasp.netÒ³ÃæÌí¼Ó·Ç¿ÕУÑé¿Ø¼þ×¢ÒâÊÂÏî

´ÓÀ´¶¼ºÜÉÙд²©£¬ÏÖÔÚ¿ªÊ¼Ð´Ð´£¬·½±ã×Ô¼ºÓõÄʱºò²»ÓÃËÑË÷£¬»òÐí»¹¿ÉÒÔ°ïÖúµ½±ðÈË£¬ºÎÀÖ¶ø²»ÎªÄØ£¿ºÇºÇ¡£
×¢ÒâÊÂÏîÒ»£ºÈç¹ûÒ³Ãæµã»÷°´Å¥ÎÞ·¨´¥·¢ÑéÖ¤¿Ø¼þµÄ×÷ÓÃʱ£¬½â¾ö°ì·¨ÈçÏ£º
    c:\WINNT\Microsoft.NET\Framework\v1.1.4322  
   1.¿ªÊ¼²Ëµ¥£­£­>ÔËÐÐcmd    
&nbs ......

½÷É÷Asp.netÖÐstatic±äÁ¿µÄÓ÷¨

½÷É÷Asp.netÖÐstatic±äÁ¿µÄÓ÷¨
.Net¼¼Êõ 2007-01-30 22:17:37 ÔĶÁ925 ÆÀÂÛ11 ×ֺţº´óÖÐС
½÷É÷Asp.netÖÐstatic±äÁ¿µÄÓ÷¨
    ÔÚ.Netƽ̨ϽøÐÐCSÈí¼þ¿ª·¢Ê±,ÎÒÃǾ­³£Óöµ½ÒÔºó»¹ÒªÓõ½Ä³Ð©±äÁ¿ÉÏ´ÎÐ޸ĺóµÄÖµ,ΪÁ˼òµ¥Æð¼û,ºÜ¶àÈ˶¼Ï°¹ßÓÃstaticÀ´¶¨ÒåÕâЩ±äÁ¿,ÎÒÒ²ÊÇ¡£ÕâÑù·Ç³£·½±ã£¬ÏÂÒ»´Îµ÷ÓÃij¸ö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ