Register on the forum now to remove ALL ads + popups + get access to tons of hidden content for members only!

Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > PHP / mySQL

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 08-07-2015, 05:56 AM   #1
chinmay.sahoo
Registered User
 
Join Date: Dec 2013
Location: Banglore
Posts: 335
Send a message via AIM to chinmay.sahoo Send a message via MSN to chinmay.sahoo
Arrow What Is a Persistent Cookie in PHP?

A persistent cookie is a cookie which is stored in a cookie file permanently on the browser's computer. By default, cookies are created as temporary cookies which stored only in the browser's memory. When the browser is closed, temporary cookies will be erased. You should decide when to use temporary cookies and when to use persistent cookies based on their differences:




* Temporary cookies can not be used for tracking long-term information.
* Persistent cookies can be used for tracking long-term information.
* Temporary cookies are safer because no programs other than the browser can access them.
* Persistent cookies are less secure because users can open cookie files see the cookie values




Hanuman Chalisa Yantra | Body Buildo | Fair Look | | Slim Pro | Sandhi Sudha | Hot Shapers
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
chinmay.sahoo is offline   Reply With Quote

Old 08-20-2015, 06:24 AM   #2
rikshaw
Registered User
 
Join Date: Aug 2015
Location: dhaka
Posts: 25
Post Persistent Cookie in PHP?

I have already try this.

setcookie("_GuestID",$userID,time() + (20 * 365 * 24 * 60 * 60));
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by rikshaw; 03-29-2016 at 11:32 PM..
rikshaw is offline   Reply With Quote
Old 11-14-2015, 11:06 AM   #3
smmexpertss
Registered User
 
Join Date: Sep 2015
Location: uk
Posts: 390
Also called a permanent cookie, or a stored cookie, a cookie that is stored on a user��s hard drive until it expires (persistent cookies are set with expiration dates) or until the user deletes the cookie. Persistent cookies are used to collect identifying information about the user, such as Web surfing behavior or user preferences for a specific Web site.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
||
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
||
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
||
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
smmexpertss is offline   Reply With Quote
Old 11-18-2015, 10:15 PM   #4
ramskl
Registered User
 
Join Date: Sep 2015
Posts: 275
A persistent cookie is a cookie which is stored in a cookie file permanently on the browser's computer.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
ramskl is offline   Reply With Quote
Old 11-30-2015, 05:11 AM   #5
lewissmith
Registered User
 
Join Date: Sep 2015
Location: USA
Posts: 23
What Is a Persistent Cookie in PHP?

A persistent cookie is a cookie which is stored in a cookie file permanently on the browser's computer.

Content of a Persistent cookie remains unchanged even when the browser is closed.
Persistent cookies are less secure because users can open cookie files see the cookie values.
Persistent cookies can be used for tracking long-term information.

Setting cookie in php:
Cookies in PHP can be set using the setcookie() function

Syntax:
Setcookie(name, value, expire, path, domain);

Outsource Zend PHP Development | Application Development Company India


Last edited by lewissmith; 11-30-2015 at 05:13 AM..
lewissmith is offline   Reply With Quote
Old 12-10-2015, 10:35 PM   #6
clonect
Registered User
 
Join Date: Dec 2015
Posts: 11
Also called a permanent cookie, or a stored cookie, a cookie that is stored on a user��s hard drive until it expires (persistent cookies are set with expiration dates) or until the user deletes the cookie. Persistent cookies are used to collect identifying information about the user, such as Web surfing behavior or user preferences for a specific Web site.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
clonect is offline   Reply With Quote
Old 11-19-2017, 11:27 PM   #7
John Sheperd
Registered User
 
Join Date: Nov 2017
Location: Unit 2, Stephendale Yard, Stephendale Rd, Fulham, London, UK, SW6 2LR
Posts: 6
Persistent Cookie in PHP

A persistent cookie in PHP is a cookie which is stored in a cookie file permanently on the browser's computer. They used to collect identifying information about the user, such as Web surfing behavior or user preferences for a specific Web site.
Application Development Company India
John Sheperd is offline   Reply With Quote
Old 11-23-2017, 07:29 AM   #8
Lebar.123
Registered User
 
Join Date: Nov 2017
Posts: 534
Also called a permanent cookie, or a stored cookie, a cookie that is stored on a user s hard drive until it expires (persistent cookies are set with expiration dates) or until the user deletes the cookie.
__________________
Get your email validated by our
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
@ ZeroBounce
Lebar.123 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Importance of Php Development for Web Development tech.biztech Programming General 19 12-18-2017 04:19 AM
PHP introduction stevepatton PHP / mySQL 43 11-27-2017 08:34 PM
What is the meaning of a Persistent Cookie? binarynpixel PHP / mySQL 6 04-02-2014 03:43 AM
PHP project training in ahmedabad, live project training in php ahmedabad anantitsolution Post your ad here 1 07-16-2013 08:42 PM
Are you aware of the fact that PHP programming is the most widely used one? johnrichards774 PHP / mySQL 3 02-07-2012 05:41 AM


All times are GMT -7. The time now is 02:47 AM.


Powered by vBulletin Copyright © 2013 vBulletin Solutions, Inc.