Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
295 views
in Technique[技术] by (71.8m points)

javascript - Chrome不会删除会话Cookie(Chrome doesn't delete session cookies)

I'm trying to set session cookie in javascript like this:(我试图像这样在javascript中设置会话cookie:)

document.cookie = 'name=alex; path=/' But Chrome doesn't delete it even if I quit browser and launch it again.(但是即使我退出浏览器并再次启动它,Chrome也不会删除它。) I checked in Firefox and Opera and both work as intended - they delete session cookie on browser exit.(我检查了Firefox和Opera,它们都按预期工作-它们在浏览器退出时删除了会话cookie。) Is Chrome just ignoring expiration rules?(Chrome浏览器是否只是忽略到期规则?) I checked in multiple OSes and found out that session cookie gets removed on Chrome in Windows XP and Ubuntu, but NOT in Mac OSX Lion.(我签入了多个操作系统,发现会话cookie在Windows XP和Ubuntu中的Chrome上已删除,但在Mac OSX Lion中没有。)   ask by mgs translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...