ASP.NET
ASP.NET Óû§ÅäÖÃÎļþ¹¦ÄÜÉè¼ÆΪÌṩµ±Ç°Óû§µÄ¶ÀÓÐÐÅÏ¢¡£ÅäÖÃÎļþ¿ÉÓÉͨ¹ýÉí·ÝÑéÖ¤µÄÓû§Ê¹Óã¬Ò²¿ÉÒÔÓÉÄäÃû£¨Î´¾Éí·ÝÑéÖ¤£©Óû§Ê¹Óá£
1¡¢Í¨¹ýÉí·ÝÑéÖ¤µÄÓû§
ĬÈÏÇé¿öÏ£¬Óû§ÅäÖÃÎļþÓ뵱ǰ HTTP ÉÏÏÂÎÄ£¨¿Éͨ¹ý HttpContext..::.Current ÊôÐÔ·ÃÎÊ£©µÄ User ÊôÐÔÖд洢µÄÓû§±êʶ¹ØÁª¡£Óû§±êʶ¿Éͨ¹ýÒÔϼ¸·½ÃæÈ·¶¨£º
ASP.NET Forms Éí·ÝÑé֤ϵͳ£¬¸ÃϵͳÔÚÉí·ÝÑéÖ¤³É¹¦Ö®ºóÉèÖÃÓû§±êʶ¡£
Windows »ò Passport Éí·ÝÑéÖ¤£¬´Ë¹¦ÄÜÔÚÉí·ÝÑéÖ¤³É¹¦Ö®ºóÉèÖÃÓû§±êʶ¡£
×Ô¶¨ÒåÉí·ÝÑéÖ¤£¬¶ÔÓû§Æ¾¾ÝµÄ»ñÈ¡ºÍÓû§±êʶµÄÉèÖýøÐÐÊÖ¶¯¹ÜÀí¡£
ASP.NET Forms Éí·ÝÑéÖ¤ÐèÒª´´½¨µÇ¼´°Ìå²¢ÌáʾÓû§Ìṩƾ¾Ý¡£Ê¹Óà ASP.NET µÇ¼¿Ø¼þ£¬ÎÞÐè±àдÈκδúÂë¼´¿É´´½¨µÇ¼´°Ìå²¢Ö´ÐÐ Forms Éí·ÝÑéÖ¤¡£ÓйØʹÓà ASP.NET ¹¦ÄܶÔÓû§½øÐÐÉí·ÝÑéÖ¤µÄÐÅÏ¢£¬Çë²Î¼û ASP.NET µÇ¼¿Ø¼þ¸ÅÊö ºÍ ʹÓóÉÔ±×ʸñ¹ÜÀíÓû§¡£
2¡¢ÄäÃûÓû§
ÅäÖÃÎļþ»¹¿ÉÓÉÄäÃûÓû§Ê¹Óá£Ä¬ÈÏÇé¿öÏ£¬²¢²»»áÆôÓÃÄäÃûÅäÖÃÎļþÖ§³Ö£¬Òò´Ë±ØÐëÏÔʽÆôÓᣴËÍ⣬µ±ÔÚ Web.config ÎļþÖж¨ÒåÅäÖÃÎļþÊôÐÔʱ£¬±ØÐ뽫ÆäÏÔʽ¶¨ÒåΪ¿ÉÓÉÄäÃûÓû§µ¥¶ÀʹÓá£ÓÉÓÚÅäÖÃÎļþ¿ÉÄÜÉè¼ÆΪÓÉͨ¹ýÉí·ÝÑéÖ¤µÄÓû§Ê¹Ó㬲¢ÇÒÐí¶àÊôÐÔ¿ÉÄÜ°üº¬ÄäÃûÓû§²»¿ÉÓõĸöÈËÐÅÏ¢£¬Òò´ËĬÈÏÇé¿öÏÂÅäÖÃÎļþÊôÐÔ²¢²»Ö§³ÖÄäÃû·ÃÎÊ¡£
Èç¹ûÆôÓÃÁËÄäÃû±êʶ£¬ÔòÓû§Ê״ηÃÎÊÕ¾µãʱ£¬ASP.NET ½«ÎªÆä´´½¨Ò»¸öΨһ±êʶ¡£¸ÃΨһÓû§±êʶ´æ´¢ÔÚÓû§¼ÆËã»úÉ쵀 Cookie ÖУ¬ÕâÑù£¬¶ÔÓÚÿ¸öÒ³ÇëÇó£¬ÆäÓû§¶¼¿ÉÒԵõ½±êʶ¡£Cookie µÄĬÈÏÓÐЧÆÚÉèÖÃΪ´óÔ¼ 70 Ì죬µ±Óû§·ÃÎÊÕ¾µãʱ»á¶¨ÆÚ¶ÔÆä½øÐиüС£Èç¹ûÓû§µÄ¼ÆËã»ú²»½ÓÊÜ Cookie£¬Ôò¿É½«¸ÃÓû§µÄ±êʶ×÷ΪÇëÇóµÄÒ³ URL µÄÒ»²¿·ÖÀ´Î¬»¤£¨¾¡¹ÜÓû§¹Ø±Õä¯ÀÀÆ÷ʱ¸Ã±êʶ»á¶ªÊ§£©¡£
3¡¢Ç¨ÒÆÄäÃûÅäÖÃÎļþÐÅÏ¢
ÔÚÓÐЩÇé¿öÏ£¬ÄúµÄÓ¦ÓóÌÐò×î³õ¿ÉÄÜά»¤×ÅÄäÃûÓû§µÄ¸öÐÔ»¯ÉèÖÃÐÅÏ¢£¬µ«×îºó¸ÃÓû§µÇ¼µ½ÁËÄúµÄÓ¦ÓóÌÐòÖС£ÔÚÕâÖÖÇé¿öÏ£¬¸ÃÓû§µÄ±êʶ»á´Ó·ÖÅäµÄÄäÃûÓû§±êʶ¸ü¸ÄΪÉí·ÝÑéÖ¤½ø³ÌÌṩµÄ±êʶ¡£
µ±Óû§µÇ¼£¨¼´²»ÔÙÊÇÄäÃûÓû§£©Ê±£¬½«Òý·¢ MigrateAnonymous ʼþ¡£Èç¹ûÓбØÒª£¬¿ÉÒÔ¶Ô´Ëʼþ½øÐд¦Àí£¬ÒԱ㽫ÐÅÏ¢´ÓÓû§µÄÄäÃû±êʶǨÒƵ½ÐµÄͨ¹ýÉí·ÝÑéÖ¤µÄ±êʶ¡£ÏÂÃæµÄ´úÂëʾÀýÑÝʾÓû§Í¨¹ýÉí·ÝÑé֤ʱÈçºÎǨÒÆÐÅÏ¢¡£
public void Profile_OnMigrateAnonymous(object sender, ProfileMigrateEventArgs args)
{
Ïà¹ØÎĵµ£º
¼òµ¥¾ÍÏÂÔÚ.NET¿ª·¢ÍøÕ¾ÖÐÒýÓÃwebservice²¢ÇÒ·¢²¼µ½·þÎñÆ÷µÄ×ö·¨£¬ÕâÀï²»½ØͼÁË¡£
1¡¢ÔÚÍøÕ¾ÏîÄ¿ÉÏ£¬ÓÒ¼ü-->Ìí¼ÓwebÒýÓà £¬½«webÒýÓõĵØÖ·Õ³Ìù£¬ÀýÈç http://192.168.14.222:6666/IbeBaseWebServicePublicWeb/IbeJourneyOdd.asmx
2¡¢¸øwebserviceÆð±ðÃû£¬Ò²¾ÍÊÇÒÔºóÄãµ÷ÓõÄÃüÃû¿Õ¼ä ÀýÈçIbeJourneyOdd
ÕâÑùÔ ......
ASP.NET defines an application as the sum of all files, pages, handlers, modules, and executable code that can be invoked or run in the scope of a given virtual directory (and its subdirectories) on a Web application server. For example, an "order" application might be published in the "/order ......
Ò»¡¢Cookie ¸ÅÊö
1¡¢·½°¸
Cookie ÌṩÁËÒ»ÖÖÔÚ Web Ó¦ÓóÌÐòÖд洢Óû§Ìض¨ÐÅÏ¢µÄ·½·¨¡£ÀýÈ磬µ±Óû§·ÃÎÊÄúµÄÕ¾µãʱ£¬Äú¿ÉÒÔʹÓà Cookie ´æ´¢Óû§Ê×Ñ¡Ïî»òÆäËûÐÅÏ¢¡£µ±¸ÃÓû§ÔٴηÃÎÊÄúµÄÍøվʱ£¬Ó¦ÓóÌÐò±ã¿ÉÒÔ¼ìË÷ÒÔÇ°´æ´¢µÄÐÅÏ¢¡£
2¡¢±³¾°
Cookie ÊÇһС¶ÎÎı¾ÐÅÏ¢£ ......
״̬¹ÜÀíÊÇÄú¶Ôͬһҳ»ò²»Í¬Ò³µÄ¶à¸öÇëÇóά»¤×´Ì¬ºÍÒ³ÐÅÏ¢µÄ¹ý³Ì¡£ÓëËùÓлùÓÚ HTTP µÄ¼¼ÊõÒ»Ñù£¬Web ´°ÌåÒ³ÊÇÎÞ״̬µÄ£¬ÕâÒâζ×ÅËüÃDz»×Ô¶¯Ö¸Ê¾ÐòÁÐÖеÄÇëÇóÊÇ·ñÈ«²¿À´×ÔÏàͬµÄ¿Í»§¶Ë£¬»òÕßµ¥¸öä¯ÀÀÆ÷ʵÀýÊÇ·ñÒ»Ö±Ôڲ鿴ҳ»òÕ¾µã¡£´ËÍ⣬µ½·þÎñÆ÷µÄÿһÍù·µ¹ý³Ì¶¼½«Ïú»Ù²¢ÖØд´½¨Ò³£»Òò´ ......