+ Reply to Thread
Results 1 to 2 of 2

Thread: Bally (Baljinder) Chohan: How can I set cookies in PHP?

  1. #1
    Newbie ballysports is on a distinguished road
    Join Date
    May 2014

    Bally (Baljinder) Chohan: How can I set cookies in PHP?

    Hi I am Bally Chohan
    I am Designing a website Bally Chohan Sports and I just wanted to know how can I set cookies in PHP?
    please let me know
    Bally Chohan Sports

  2. #2
    Setting a cookie requires a key, a value, and the amount of time to allow the cookie to exist.
    $first_name = 'David';
    setcookie('first_name',$first_name,time() + (86400 * 7)); // 86400 = 1 c

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


Tags for this Thread

Posting Permissions

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