Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Php For Dummies - Php Tutorial 15: Cookies

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,640
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 15, 2010

In this in-depth video, you will be learning about cookies in PHP, the syntax they should be used in, and how to apply it in a simple way. Although this tutorial uses cookies in a very simple example, the concept you will learn in this video can be easily manipulated into something more advanced.

Cookies are basically small files embed into a user's computer by a web server, allowing the website to "remember" the user and its information stored in the cookie.

If there is something specific that you would like to learn in future tutorials, drop a comment below the video and i'll be sure to take it into consideration.

To stay up-to-date with these tutorials, simply subscribe to my channel by clicking on the yellow subscribe button above the video.

Thanks for watching,
flash4real.

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (flash4real)

  • I'm again seeming to have a problem with my coding or something because after I enter my name to set the cookie, it directs me to setcookie2.php but the browser states webpage cannot be found. I can't seem to figure out where i am going wrong. I even went through your tutorial and my code again to make sure there were no errors. If it helps I can send you the code for all 4 pages. Thanks for the help in advance and keep up the good work.

  • @gabriellippincott10 Send the code of all 4 pages to my email please.

  • In the tutorial a few lessons back you introduced us to a simple login system. How about showing us one that includes proper security and MySQL?

  • @MrStarstreak

    Yes, I am going to be introducing MySQL soon, however, I am quite busy with work.

    You can expect an introduction to MySQL by the end of next month (Good way to celebrate new year, huh?) and further advances into "proper" security.

  • i cant copy the code here :(

    Do you know what should be the problem?

    And thx a lot for the lessons!

  • @peromajstore

    This means that the code is being parsed as text, and not PHP.

    To fix this, check that you're saving your code as a .php file, or if you're using Notepad, make sure the box below the file name says "Save-as type: all files" and not "Save-as type: text document".

see all

All Comments (19)

Sign In or Sign Up now to post a comment!
  • is that ur dog barking?

  • THX, that was the problem, i have saved it again, and it works.... thanks a lot

  • It only wrotes for me on index.php:

    "; echo "CLICK here to clear the cookie "; } else { echo "Welcome, new user! CLICK here to set the cookie "; } ?>

    I was unable to find the error... but i didnt saw the end of the last line you wrote..

  • Just finished watching all your tutorials on PHP for Dummies straight through. Marvelous job bro. You talk me more in an hour than I would have learn after days on W3 Schools.

    As for ideas of what do next, may I suggest a tutorial series on how to use PHP to create a content management system? I'm sure it would have to include MySQL as well.

    Anywho, thanks for taking the time to share your knowledge with us. I appreciate it to the fullest. Definitely looking forward to more from you.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more