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
Solved

Google Chrome won't accept local file cookies

Posted on 2013-01-31
3
1,917 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 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

861 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