PHP Introduction to User Authentication in PHP Building Authentication Login System

Josh O.
Josh O.
658 Points

What does a lot of this code mean? I just started learning PHP today so I am a little lost on what some things mean like

What do the following things mean: -> ['id'] there seems to be some configuration that means something. Set('first thing', 'second thing'). it seems like the first thing is a variable and the second is the value of the variable, but I am unsure. Also please explain sessions where it is stored and how we retrieve specific things from it. We seem to be doing something with the flashbag too where there are error statements and success statements and some where in the code it is pursing a database of errors and success messages.

1 Answer

Steven Parker
Steven Parker
201,927 Points

If you're just starting to learn PHP, it might be too soon for this particular course. You might want to set it aside for now and start with the Beginning PHP track.

After you finish that track, come back to this course and it should make a lot more sense!