Java Session and Cookie
Ò»¡¢cookie»úÖƺÍsession»úÖƵÄÇø±ð
*************************************************************************************
¾ßÌåÀ´Ëµcookie»úÖƲÉÓõÄÊÇÔÚ¿Í»§¶Ë±£³Ö״̬µÄ·½°¸£¬¶øsession»úÖƲÉÓõÄÊÇÔÚ·þÎñÆ÷¶Ë±£³Ö״̬µÄ·½°¸¡£
ͬʱÎÒÃÇÒ²¿´µ½£¬ÓÉÓڲŷþÎñÆ÷¶Ë±£³Ö״̬µÄ·½°¸ÔÚ¿Í»§¶ËÒ²ÐèÒª±£´æÒ»¸ö±êʶ£¬ËùÒÔsession
»úÖÆ¿ÉÄÜÐèÒª½èÖúÓÚcookie»úÖÆÀ´´ïµ½±£´æ±êʶµÄÄ¿µÄ£¬µ«Êµ¼ÊÉÏ»¹ÓÐÆäËûÑ¡Ôñ
*************************************************************************************
¶þ¡¢»á»°cookieºÍ³Ö¾ÃcookieµÄÇø±ð
*************************************************************************************
Èç¹û²»ÉèÖùýÆÚʱ¼ä£¬Ôò±íʾÕâ¸öcookieÉúÃüÖÜÆÚΪä¯ÀÀÆ÷»á»°Æڼ䣬ֻҪ¹Ø±Õä¯ÀÀÆ÷´°¿Ú£¬cookie¾ÍÏûʧÁË¡£ÕâÖÖÉúÃüÆÚΪä¯ÀÀ»á»°ÆÚµÄcookie±»³ÆΪ»á»°cookie¡£»á»°cookieÒ»°ã²»±£´æÔÚÓ²ÅÌÉ϶øÊDZ£´æÔÚÄÚ´æÀï¡£
¡¡¡¡Èç¹ûÉèÖÃÁ˹ýÆÚʱ¼ä£¬ä¯ÀÀÆ÷¾Í»á°Ñcookie±£´æµ½Ó²ÅÌÉÏ£¬¹Ø±ÕºóÔٴδò¿ªä¯ÀÀÆ÷£¬ÕâЩcookieÒÀÈ»ÓÐЧֱµ½³¬¹ýÉ趨µÄ¹ýÆÚʱ¼ä¡£
¡¡¡¡´æ´¢ÔÚÓ²ÅÌÉϵÄcookie¿ÉÒÔÔÚ²»Í¬µÄä¯ÀÀÆ÷½ø³Ì¼ä¹²Ïí£¬±ÈÈçÁ½¸öIE´°¿Ú¡£¶ø¶ÔÓÚ±£´æÔÚÄÚ´æµÄcookie£¬²»Í¬µÄä¯ÀÀÆ÷Óв»Í¬µÄ´¦Àí·½Ê½¡£
*************************************************************************************
Èý¡¢ÈçºÎÀûÓÃʵÏÖ×Ô¶¯µÇ¼
*************************************************************************************
¡¡¡¡µ±Óû§ÔÚij¸öÍøÕ¾×¢²áºó£¬¾Í»áÊÕµ½Ò»¸öΩһÓû§IDµÄcookie¡£¿Í»§ºóÀ´ÖØÐÂÁ¬½Óʱ£¬Õâ¸ö
Óû§ID»á×Ô¶¯·µ»Ø£¬·þÎñÆ÷¶ÔËü½øÐмì²é£¬È·¶¨ËüÊÇ·ñΪע²áÓû§ÇÒÑ¡ÔñÁË×Ô¶¯µÇ¼£¬´Ó¶øʹÓû§ÎñÐè¸ø³öÃ÷È·µÄÓû§ÃûºÍÃÜÂ룬¾Í¿ÉÒÔ·ÃÎÊ·þÎñÆ÷ÉϵÄ×ÊÔ´¡£
*************************************************************************************
ËÄ¡¢ÈçºÎ¸ù¾ÝÓû§µÄ°®ºÃ¶¨ÖÆÕ¾µã
*************************************************************************************
¡¡¡¡ÍøÕ¾¿ÉÒÔʹÓÃcookie¼Ç¼Óû§µÄÒâÔ¸¡£¶ÔÓÚ¼òµ¥µÄÉèÖã¬ÍøÕ¾¿ÉÒÔÖ±½Ó½«Ò³ÃæµÄÉèÖô洢ÔÚcookieÖÐÍê³É¶¨ÖÆ¡£È»¶ø¶ÔÓÚ¸ü¸´ÔӵĶ¨ÖÆ£¬ÍøÕ¾Ö»Ðè½ö½«Ò»¸öΩһµÄ±êʶ·û·¢Ë͸øÓû§£¬ÓÉ·þÎñÆ÷¶ËµÄÊý¾Ý¿â´æ´¢Ã¿¸ö±êʶ·û¶ÔÓ¦µÄÒ³ÃæÉèÖá£
*************************************************************************************
Îå¡¢cookieµÄ·¢ËÍ
*****************
Ïà¹ØÎĵµ£º
±í´ïʽÒâÒ壺
1.×Ö·û
x ×Ö·û x¡£ÀýÈça±íʾ×Ö·ûa
\\ ·´Ð±Ïß×Ö·û¡£ÔÚÊéдʱҪдΪ\\\\¡££¨×¢Ò⣺ÒòΪjavaÔÚµÚÒ»´Î½âÎöʱ,°Ñ\\\\½âÎö³ÉÕýÔò±í´ïʽ\\£¬ÔÚµÚ¶þ´Î½âÎöʱÔÙ½âÎöΪ\£¬ËùÒÔ·²ÊDz»ÊÇ1.1Áоٵ½µÄתÒå×Ö·û£¬°üÀ¨1.1µÄ\\,¶øÓÖ´øÓÐ\µÄ¶¼ÒªÐ´Á½´Î£©
\0n ´øÓа ......
ÏÈ¿´¸öÀý×Ó£º
½Ó¿Ú
package example;
public interface Basic {
public void hello();
}
½Ó¿ÚµÄʵÏÖÀà
package example;
public class BasicService implements Basic {
public void hello() {
Sysyt ......
write by ¾ÅÌìÑãôá(JTianLing) -- blog.csdn.net/vagrxie ÌÖÂÛÐÂÎÅ×é¼°Îļþ Technorati ±êÇ©: JAVA,JAVA Applet,Applet Tag,Deploy Applet,´ÓC++µ½JAVA Ç°ÑÔ Ôø¾£¬ÎÒÓÐÒ»¸öÃÎÏ룬ÄǾÍÊÇÎҵijÌÐòÄÜÈÃÈ˲»ÐèÒªÏÂÔؾÍÄÜͨ¹ýä¯ÀÀÆ÷ÔËÐУ¬¿ÉϧѧϰµÄC,C++µÈ¶¼²»¾ß±¸´ËÄÜÁ¦£¬Ñ§Ï°ÍêPythonºó£¬·¢ÏÖÆäÒ²½ö½öÊÇÒÔ·þÎñÆ÷ ......
Ò»¡¢
ÏÈ¿´Ò»¸ö³ÌÐò
#include <stdio.h>
int main()
{
const int a = 5;
int b[a];
return 0;
}
ÔÚvc6.0ÖÐÃüÃûΪ.cÎļþ£¬±àÒë»á³ö´í£¬ÊÇint b[a]ÕâÒ»ÐУºexpected constant expression
ÃüÃûΪ.cppÎļþ£¬Ã»ÎÊÌâ¡£
ÔÚcodeblocks(Ò»¸öÃâ·Ñ¿ªÔ´µÄ±àÒëÆ÷)ÖбàÒ붼à ......