Professional Web Applications Themes

How to capture cookies information - PHP Development

I am very new with php. And I want to find out how do I capture user cookies information for traffic ysis on Windows machine and server cookies from Linux server. thanks....

  1. #1

    Default How to capture cookies information

    I am very new with php. And I want to find out how do I capture user
    cookies information for traffic ysis on Windows machine and server
    cookies from Linux server.

    thanks.
    xo55ox Guest

  2. #2

    Default Re: How to capture cookies information

    xo55ox wrote:
    > I am very new with php. And I want to find out how do I capture user
    > cookies information for traffic ysis on Windows machine and server
    > cookies from Linux server.
    See the setcookie() section of the PHP manual.

    setcookie() will ask the user's browser to save a little file onto their
    machine containing the values you specify in setcookie(), but it is
    possible for the user's browser to refuse to set a cookie if the user
    has turned cookies off (unlikely) or if they reject the cookie
    personally (also fairly unlikely), or if your script is not the URL in
    the browser's address bar (making you a third-party to the Web
    transaction) recent browsers tend to reject third-party cookies (pretty
    likely and increasingly so).

    setcookie() must be called before any data has been sent (it's like the
    header() function).

    If setcookie() is successful, you can then see the values your site set
    (and only the values *your* site set) in the $_COOKIE variable on the
    page AFTER THE PAGE THAT USES setcookie() AND NOT BEFORE. The first
    cookie mistake some people make is trying to look at stored cookie
    values before they've been stored.
    --
    Bob
    London, UK
    echo Mail fefsensmrrjyaheeoceoq\! | tr "jefroq\!" "obe.uk"
    Robert Downes Guest

  3. #3

    Default Re: How to capture cookies information

    Hi,

    Try using setcookie to set the cookie and $_COOKIE to retrieve it when
    you need it. Note that to set the cookie, you will have to do this
    before any other information is sent to the web browser of the
    visitor.

    Success,

    Paul


    [email]xo55oxhotmail.com[/email] (xo55ox) wrote in message news:<abbcb3d7.0312072149.5d13afecposting.google. com>...
    > I am very new with php. And I want to find out how do I capture user
    > cookies information for traffic ysis on Windows machine and server
    > cookies from Linux server.
    >
    > thanks.
    Paul Guest

  4. #4

    Default How to capture cookies information

    Hi,

    I am new to php scripting and want to find out how to capture cookies
    from user machines such as from Windows or linux machine.

    Thanks in advance.
    xo55ox Guest

  5. #5

    Default Re: How to capture cookies information

    "xo55ox" a écrit le 08/12/2003 : 

    Do you want to use "normally" cookies or do you want to "spy" on
    cookies from other sites?
    If it is normal cookie use go and see :
    http://fr2.php.net/manual/en/function.setcookie.php

    --
    Have you read the manual?
    http://www.php.net/manual/en/

    Jedi121 Guest

  6. #6

    Default Re: How to capture cookies information

    [email]xo55oxhotmail.com[/email] (xo55ox) wrote:
    > I am new to php scripting and want to find out how to capture cookies
    > from user machines such as from Windows or linux machine.
    Cookies your server has set are in the super-global array $_COOKIE
    To set cookies use setcookie()

    [url]http://uk.php.net/manual/en/reserved.variables.php#reserved.variables.cook[/url]
    ies
    [url]http://uk.php.net/manual/en/function.setcookie.php[/url]

    HTH;
    JOn
    Jon Kraft Guest

Similar Threads

  1. Web Capture Pro 7.0.7 - No Can Do
    By Dale_Hoffman@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 4
    Last Post: September 23rd, 12:29 AM
  2. How to capture url?
    By Steve Grosz in forum Macromedia ColdFusion
    Replies: 2
    Last Post: June 15th, 04:56 PM
  3. Capture Debuggin Information
    By s6868 in forum Coldfusion - Advanced Techniques
    Replies: 2
    Last Post: June 8th, 03:29 PM
  4. Capture screen
    By lafa in forum Macromedia Director Basics
    Replies: 1
    Last Post: November 11th, 06:15 AM
  5. 3D Capture
    By GONS in forum Macromedia Director 3D
    Replies: 3
    Last Post: October 15th, 05:37 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139