#1
  1. No Profile Picture
    TheDuke
    Guest
    Devshed Newbie (0 - 499 posts)
    I'm unexperiences in using cookies and now I would like a cookie that holds the time of the last visit of a visitor (unix time)

    can anybody give me more info on this or provide me with an example script ?
  2. #2
  3. No Profile Picture
    markdrayton
    Guest
    Devshed Newbie (0 - 499 posts)
    I'm not 100% sure on this, but here goes:

    setcookie("nameofcookie",time(),"expirytime");

    should give $nameofcookie with the time that setcookie ws run.

Similar Threads

  1. Placing user-entered data into cookie
    By Tyrone in forum Perl Programming
    Replies: 2
    Last Post: February 17th, 2004, 04:31 PM
  2. Replies: 2
    Last Post: February 9th, 2004, 01:22 PM
  3. will PHP write over the same cookie?
    By xpatriot in forum PHP Development
    Replies: 5
    Last Post: February 2nd, 2004, 08:59 AM
  4. PHP with UnixODBC
    By coder4hire in forum PHP Development
    Replies: 2
    Last Post: January 20th, 2004, 01:14 PM
  5. UnixODBC + PHP + Apache + Empress
    By coder4hire in forum Database Management
    Replies: 0
    Last Post: January 15th, 2004, 01:41 PM

IMN logo majestic logo threadwatch logo seochat tools logo