1
我不確定下面有兩個餅乾property
(session
& storeId
)。如何分配它們以及如何爲它們設置值。瞭解一些餅乾「參數」
{
"domain": "localhost",
"expirationDate": 1395835493.034348,
"hostOnly": true,
"httpOnly": true,
"name": "token",
"path": "/",
"secure": false,
"session": false, /* What does session option mean here & how to assign them. */
"storeId": "0", /* What does storeId mean here & how to assign them. */
"value": "6e5ef234b7f34fd265f011ab80fc0cff"
}
我知道休息cookie property
,只是不是session
& storeId
清楚。
有人可以請解釋。
謝謝
如何將'cookie'設置爲'session cookie'? –
忽略過期值將使其成爲會話cookie。 http://stackoverflow.com/questions/5670419/create-a-cookie-that-lasts-until-the-browser-is-closedsession-cookie –
謝謝,這清除了我的懷疑。 –