Web Design and Programming Pt 20

Black BoardIn this part of the Web Design and Programming Tutorial I will review how to use 3 global storage arrays available in PHP. Specifically in this video I’ll show you how to use:

  • Cookies: A storage array that you save on the clients computer. You access it by referring to $_COOKIE
  • Sessions: A storage array that you save on the server. It is accessed by referring to $_SESSION
  • Server Global: An array that contains info on your server and the client machine. You access it by referring to $_SERVER

This tutorial series was created to teach you all that you need to know to build robust web applications. I’ll be bouncing between it and the PHP security tutorial that I’m working on at the same time. Here are links to the 2 tutorials that proceeded this one: PHP Security Pt 3 & Web Design and Programming Pt 19

If you have any questions or comments leave them below. Otherwise enjoy the video 🙂

3 Responses to “Web Design and Programming Pt 20”

  1. Ajay says:

    Dear derek,

    Thanks for a really great set of video tutorials that I just love. You have a wonderful style of speaking and explanation and I really appreciate that.

    I have just gone through your ” Web design and programming PT 20 and 21 and these are dedicated to cookies and sessions respectively. Basically to create a secure login.

    However I have not seen the use of cookies for handshaking each time the user switches between pages of a website and so i am confused as to how would the user be recognized by the website while he is browsing. Maybe I am missing something and I would be happy if you can explain that in one of your videos shortly.

    I think it would also be like extending the secure login to secure browsing. Also if you can tell how various attacks would be foiled by this code – attacks like session hijacking, side-jacking, session fixation etc.

    I have gone through your security tutorials and find them awesome.

    Thanks !

    • Derek Banas says:

      Hi Ajay,

      You are very welcome 🙂 I’m glad you have found the tutorials to be useful. I show how to further use tokens as the tutorial continues. I hope it helps.

  2. Ajay says:

    Hi Derek,

    Thanks for the response. Your tutorials are damn helpful and I am sure would continue to be so. I’ll look forward to your ensuing & continuing tutorials to know about the cookies as mentioned in the last mail.

    A request, kindly do those real soon. eagerly awaiting them. Thanks again for great tutorials and great explanations.

Leave a Reply

Your email address will not be published.