JavaWeb-Cookie path

1. First, Cookie's path is not specified in the server to the browser on which path

path is the role of 2.cookie Every time a browser to access the server, the browser cookie with which the past (see the path that is determined to go back with a cookie, are not all cookie back to the server)

3. If the path you access the server that contains the path to the cookie, the cookie will be with the past;

    For example, there are two browser cookie: A and B, A.path = / demo01 /; B.path = / demo01 / jsp /

    Now access path is /demo01/index.jsp, the Acookie will be with the past, but no B; if access /demo01/jsp/a.jsp, then AB will be with the past

Guess you like

Origin www.cnblogs.com/ibcdwx/p/12311439.html