PHP Sessions | Create a Session Object

Поділитися
Вставка

КОМЕНТАРІ • 8

  • @dinyodonchev9093
    @dinyodonchev9093 2 роки тому +1

    Next level of positivity - finishing every section with "Great stuff!" :) How cool is that?! :D

  • @davidbarclay6293
    @davidbarclay6293 3 роки тому +1

    Love the videos Gary

  • @astev52
    @astev52 Рік тому

    Great tutorial, just a question though, why use an interface when there's only ever going to be one class implementing it?

    • @GaryClarkeTech
      @GaryClarkeTech  Рік тому

      Good question. You can never rule out the possibility of one day using a different Session class but the rest of your code will be expecting the Session to have certain methods. Creating an interface just creates a contract so that no matter which concrete Session class you use, it will always have to adhere to that contract.
      Hope that makes sense 🤔

    • @astev52
      @astev52 Рік тому

      @@GaryClarkeTech Yeah makes sense, thanks

  • @dmitriykret8938
    @dmitriykret8938 2 роки тому

    👍👍👍