On my previous posts we saw how to to create and use true global variables. Their usage is limited to $dbh at the moment. But I also need a “global” variable, shared between all components of the same request. Here’s one of my first tries, and this is how the Base.mc will look like:
and this is the index.mc:
I think I will use Base.mp and here’s what I’m going to do:
Next, how do I actually authenticate my users? See it on my next post!