Solved

Google Chrome won't accept local file cookies

Posted on 2013-01-31
3
2,056 Views
Last Modified: 2013-01-31
I'm trying to get Google Chrome on my Win7 computer to accept and read local file cookies for HTML pages on my hard disk.

I have so far been unsuccessful at getting Chrome to work properly with either the "--allow-file-access-from-files" option or the "--enable-file-cookies".

I right-click on the Chrome icon, choose properties, and then modify the target to add the command-line option to the end (after a space):

C:\Users\Tim\AppData\Local\Google\Chrome\Application\chrome.exe --enable-file-cookies

Save the shortcut, close all browsers, then open Chrome with this shortcut and paste in the local C:\DocDir\index.htm file in the URL window and the cookies are not saved.

Any ideas what I'm doing wrong?  Or did Google remove this option?
0
Comment
Question by:ttitus
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 38842115
This document from Google http://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_cookies shows in the chart that Chrome does not support cookies for file URLs.  The probability is that other browsers will follow suit after a while because security restrictions just keep getting tighter.
0
 

Author Closing Comment

by:ttitus
ID: 38842124
Well described, good article presented.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 38842144
Thanks and thanks for the points.
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This article discusses how to implement server side field validation and display customized error messages to the client.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question