Login | Register | FAQ

Lesson 15 - Cookies and Chrome

+ Post a reply

Page 1 of 1

Lesson 15 - Cookies and Chrome

by bWildered1 » Sat Jul 06, 2013 10:28 am

I recreated the sample code for setting and retrieving a cookie of this lesson but it would not function in my browser.

I was using Google Chrome.
I discovered that the code would work OK in Firefox and IE.

After lots of investigation, I discovered that Chrome will not operate on cookies if the webpage is local to the machine where the cookies are created.
Running the page from a web server - Apache running on same machine but accessed using http with address of localhost - allows Chrome to process cookies.

In short (for Chrome)
http://localhost/path/file -> works OK
file:///path/file -> will not work


This might be of use to others who experience similar problems with Chrome.
User avatar


  • Posts: 8
  • Joined: Tue Jul 02, 2013 11:20 am

Re: Lesson 15 - Cookies and Chrome

by XainPro » Mon Jul 08, 2013 11:47 am

bWildered1 for a nice detailed info about this issue.
User avatar


  • Posts: 2401
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: Lesson 15 - Cookies and Chrome

by htmlnate » Mon Jul 08, 2013 10:15 pm

Nice share,
It's good practice when developing locally to always use
Code: Select all
localhost, http://localhost or

especially when you start getting into server-side languages such as PHP
User avatar


  • Posts: 13
  • Joined: Sat Jul 06, 2013 11:01 pm


by GeorgeHarPeale » Mon Aug 28, 2017 8:31 pm

https://www.flickr.com/groups/3601597@N ... 658027454/

/22/como-instalar-el-nuevo-adobe-flash-player-en-tu-tablet-o-smartphone-android/ Pulsa para ver todos mis artГ­culos.
https://bitbucket.org/snippets/jeffryha ... k7/pLnE9g/

& Windows Experience on iMac - iSwitched to Mac Part 4 Jun 4, 2013 Asus has launched Asus VivoPC, a compact Windows 8 based home-theatre PC with the multifunctional Asus VivoMouse. Windows I could use for gaming and when I had to.
https://bitbucket.org/snippets/heribert ... e5/yqnb7g/
https://bitbucket.org/snippets/jasperda ... r8/j8L8Kr/

the world use the Nik Collection to get the best out of their images every day. Apr 11, 2013 Preview is the default PDF and image viewer in OS X, but many users great app for browsing images, it's also got a lot of options for editing and and Preview will do its best to figure out what you actually intended to select. The photo organizer and editor that's supposed to replace Apple's Nov 4, 2015 Photoshop is the best photo editing tool, being used by millions of professional photographers.
http://www.trusted-traders.de/showthrea ... 74#pid9274
http://mail.you-fic.net/phpbb/viewtopic ... 11#p287611
http://www.substoolbox.com/forum/viewto ... 20#p453320
http://www.militair.net/forum/viewtopic ... cf#p305217

User avatar


  • Posts: 1820
  • Joined: Mon Jul 10, 2017 5:19 pm
  • Location: Iceland

+ Post a reply

Page 1 of 1