PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Wed Jul 17, 2019 8:38 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Sun Apr 22, 2012 8:46 pm 
Offline
Forum Contributor
User avatar

Joined: Tue Apr 17, 2012 8:24 pm
Posts: 135
I am reading a book of Morrison, which tell me that cookie is write to disk when the browser is turned off.
But my understanding is that when cookie is created.
Anyone knows which one is right? Thanks.


Top
 Profile  
 
PostPosted: Sun Apr 22, 2012 11:16 pm 
Offline
Spammer :|
User avatar

Joined: Wed Oct 15, 2008 2:35 am
Posts: 6617
Location: WA, USA
Depends on the browser.


Top
 Profile  
 
PostPosted: Mon Apr 23, 2012 8:40 am 
Offline
Forum Contributor
User avatar

Joined: Tue Apr 17, 2012 8:24 pm
Posts: 135
could you please tell me which browser is which. How can I find out the policy of my browser?


Top
 Profile  
 
PostPosted: Mon Apr 23, 2012 9:03 am 
Offline
Spammer :|
User avatar

Joined: Wed Oct 15, 2008 2:35 am
Posts: 6617
Location: WA, USA
No, because I don't know. And I'd be very surprised if anybody who doesn't actually write code for a browser knew.

As for finding out, your options are:
- Download the source of the various browsers (the ones that provide source) and see what the code does
- Ask on a mailing list and/or forum dedicated to the development of each browser
- Google it


Top
 Profile  
 
PostPosted: Mon Apr 23, 2012 9:42 am 
Offline
DevNet Master
User avatar

Joined: Sun Feb 15, 2009 12:08 pm
Posts: 2794
Location: .za

_________________
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering


Top
 Profile  
 
PostPosted: Mon Apr 23, 2012 5:00 pm 
Offline
Briney Mod
User avatar

Joined: Mon Jan 19, 2004 7:11 pm
Posts: 6446
Location: 53.01N x 112.48W
The cookie is created the moment the browser receives the headers telling it to create a cookie. That cookie is stored in RAM. At various times (dependant on the browser), that cookie will be written to hard disk so it can be stored long term. As far as a web developer is concerned, when this happens doesn't matter. Nothing changes as far as the data that can be accessed or stored via the cookie.

_________________
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.


Top
 Profile  
 
PostPosted: Tue Apr 24, 2012 1:54 am 
Offline
DevNet Master
User avatar

Joined: Sun Feb 15, 2009 12:08 pm
Posts: 2794
Location: .za

_________________
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering


Top
 Profile  
 
PostPosted: Tue Apr 24, 2012 3:23 am 
Offline
Forum Contributor
User avatar

Joined: Tue Apr 17, 2012 8:24 pm
Posts: 135


Top
 Profile  
 
PostPosted: Tue Apr 24, 2012 3:29 am 
Offline
Forum Contributor
User avatar

Joined: Tue Apr 17, 2012 8:24 pm
Posts: 135


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group