Hi, I'm creating this news system, its a very simple one for my personal use, i come across a problem when defining an author, basically the author of the news article is retrived from the login information which is stored in the cookie sent to the browser.
so in this cookie "userlogin" it has value "john|password"
I explode the value from '|' when I try to ask for the cookie, it returns an Undefinded index, so I added:
if(isset($_COOKIE['userlogin'])){
# rest of code
} else {
die("You are not logged in");
}
It always dies, on the you are not logged in bit. The cookie exists, and I'm not too sure how to get around this, does anyone have any ideas?