Solved

Google Chrome won't accept local file cookies

Posted on 2013-01-31
3
1,816 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
  • 2
3 Comments
 
LVL 82

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 82

Expert Comment

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

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How to add loader animation to a page ? 2 22
Change month dropdown 5 15
Re-position the objects 7 50
CSS measurement 10 14
Several part series to implement Internet Explorer 11 Enterprise Mode
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now