Ways of using $_SESSION in procedural PHP


I am still learning procedural PHP and I could use info on what are the most common usages / applications of $_SESSION sueprglobal in procedural PHP (the “old school” version of programming). Something like:

  1. loging system (I know that)

and so on. The more the better, if this would be a possible thing, and lets say the main focus could be like cms / tube / blog / forum / shopping cart script, the most common things.

Basically I have a feeling that I need to bite into $_SESSION and $_COOKIE and figure out the most common usages of this (as related to the most common types of scripts, and again procedural for now).



It’s just another storage option like cookie, web storage, databse with unique properties on persistence depending on the session backend (file, redis).