|
INTERVIEW QUESTIONS
PROGRAMMING LANGUAGES
PHP
DETAILS
Question: What is a cookie , explaing by code ?
Answer: Cookie is use to store the temporary data in browser memory, We can store data in cookies using setcookie('name','value','time'); we can use that rule for simple cookie, this value will store in the browser memory. If the browser is closed the cookie value will be deleted. Another way to store data in cookie file for long time: persistent cookie using that way we can store data for long time in the user system.
|
|
|
Category |
PHP Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 8139 users |
Added on |
4/10/2015 |
Views |
67386 |
Rate it! |
|
|
Question:
What is a cookie , explaing by code ?
Answer:
Cookie is use to store the temporary data in browser memory, We can store data in cookies using setcookie('name','value','time'); we can use that rule for simple cookie, this value will store in the browser memory. If the browser is closed the cookie value will be deleted. Another way to store data in cookie file for long time: persistent cookie using that way we can store data for long time in the user system. Source: CoolInterview.com
Answered by: Sachin Kumar | Date: 7/9/2010
| Contact Sachin Kumar
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What does the URI used as an XML namespace name point to?
|
View Answer
|
|
Can I resolve the URI used as an XML namespace name?
|
View Answer
|
|
What are the valid values for xlink:actuate and xlink:show?
|
View Answer
|
|
How do you pass a variable by value?
|
View Answer
|
|
How To Create a Table?
|
View Answer
|
|
What are the different tables present in MySQL? Which type of table is generated when we are creating a table in the following syntax: create table employee(eno int(2),ename varchar(10))?
|
View Answer
|
|
Would I use print "$a dollars" or "{$a} dollars" to print out the amount of dollars in this example?
|
View Answer
|
|
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?
|
View Answer
|
|
How can I execute a PHP script using command line?
|
View Answer
|
|
What is the difference between mysql_fetch_object and mysql_fetch_array?
|
View Answer
|
|
How To Get the Uploaded File Information in the Receiving Script?
|
View Answer
|
|
What is meant by urlencode and urldecode?
|
View Answer
|
|
What are the differences between require and include, include_once?
|
View Answer
|
|
How To Write the FORM Tag Correctly for Uploading Files?
|
View Answer
|
|
How do you define a constant?
|
View Answer
|
|
What does a special set of tags do in PHP?
|
View Answer
|
|
What Is a Persistent Cookie?
|
View Answer
|
|
What is the difference between $message and $$message?
|
View Answer
|
|
How can we repair a MySQL table?
|
View Answer
|
|
How can we know the number of days between two given dates using PHP?
|
View Answer
|