Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Jul 2012
    Posts
    64

    how to retrive a cookie

    how to create a cookies

  2. #2
    Junior Member
    Join Date
    Mar 2014
    Posts
    3
    You mean web cookies right?

  3. #3
    Registered User
    Join Date
    Sep 2011
    Posts
    113
    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.

  4. #4
    Registered User
    Join Date
    Feb 2014
    Posts
    467
    //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;
    }
    Last edited by jackthomas087; 02-24-2016 at 07:23 AM.

  5. #5
    Senior Member
    Join Date
    Mar 2014
    Posts
    137
    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;
    }

  6. #6
    Registered User
    Join Date
    Apr 2014
    Location
    Russia
    Posts
    3
    Great it store the data for a particular session and they automacially del it

  7. #7
    Registered User
    Join Date
    Mar 2014
    Posts
    95
    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,

  8. #8
    Senior Member
    Join Date
    May 2013
    Posts
    198
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.