0
Ai, good wanted to know how do I pass information to the user through the cookie (when he is logged in appears profile button, if he is admin appears create product button, etc etc) thanks I researched some things on the internet, but the articles and videos I found I could not understand well.
I wouldn’t recommend doing this by checking for cookies. To identify the user, if you are logged in and if you are an administrator you must have already used sessions; use them in the same way to decide what content to deliver to the user. It’s basically a
if
in PHP that defines HTML.– Woss
Thanks for the tip
– Leandro