PDA

View Full Version : how to retrive a cookie



ugnakr86
03-12-2014, 07:47 AM
how to create a cookies

sistonbryan
03-13-2014, 09:49 AM
You mean web cookies right?

Neo.Reeves
03-13-2014, 01:41 PM
Cookies are usually small text files, given ID tags that are stored on your computer's browser directory or program data subfolders. Cookies are created when you use your browser to visit a website that uses cookies to keep track of your movements within the site, help you resume where you left off, remember your registered login, theme selection, preferences, and other customization functions.The website stores a corresponding file(with same ID tag)to the one they set in your browser and in this file they can track and keep information on your movements within the site and any information you may have voluntarily given while visiting the website, such as email address.

jackthomas087
03-27-2014, 09:36 AM
//Get cookie routine by Shelley Powers
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
// if cookie exists
if (offset != -1) {
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(off set, end))
}
}
return returnvalue;
}

virendra
04-04-2014, 07:31 AM
currently i have some example of cookie coding so i believe it is help you..
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
// if cookie exists
if (offset != -1) {
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(off set, end))
}
}
return returnvalue;
}

rubbelrussia
04-04-2014, 08:09 AM
Great it store the data for a particular session and they automacially del it

Sameer Shoakat
04-13-2014, 07:51 AM
That,s accessible for stored a data particular session and they automatically dell it,and Cookies are usually small text files, given ID tags that are stored on your computer's browser directory or program data subfolders. Cookies are created when you use your browser to visit a website that uses cookies to keep track of your movements within the site,

akashram
09-27-2014, 01:34 AM
A cookie is a small piece of data sent from a website and stored in a user's web browser while the user is browsing that website. Every time the user loads the website, the browser sends the cookie back to the server to notify the website of the user's previous activity.

Use setcookie to create a cookie with PHP. This cookie will expire after 30 days.