I think it was the creator of hotmail who said something like "if a project seems useful to me, maybe it's useful to 10 million people".
If you have a good idea, people will follow, but a big percentage of success is how and where the product is marketed.
means exactly what it says: It's a Notice, not an error, and it's saying that the variable contents ($contents) is undefined. Check where $contents is used and initialize it first to avoid this error.
Apart from that, is the script working?
according to the php manual:
so if you're checking if they were deleted on the same page, they probably aren't yet. At the end of your logout.php, redirect to another page and check the cookie again with something like this: (just to be sure if it's deleting or not)
foreach($_COOKIE as $k=>$v){
echo 'Cookie <b>'.$k.'</b> still exists with value: '.$v.'<br />';
}
Very basic example
<?php
// value for each side (using colors and the 'standard' 6 sides)
$values = array('BROWN','PINK','YELLOW','BLUE','RED','GREEN');
// random value
$number = rand(0,sizeof($values)-1);
// show result;
echo $values[$number];
?>
to access any session variable, you must have session_start() at the top of the file, so login.php should be:
<?php
session_start();
if(isset($_SESSION['ls']) && isset($_SESSION['id']) && isset($_SESSION['user_name']) && isset($_SESSION['email']) )
{
header('location:members.php');
die(" ");
}
?>
in this case, you need to remove the other session_start() you have in login, or it will throw a warning.
I know what you mean, and I confess I've also used it the other way round in some cases. But I have also had problems because of that. I manage a lot of different systems, some of them built over 10 years ago, and I always have to go and check if 1 meant good/bad, etc... If I had used the same rule from the start, 15 years ago, for everything, it would have saved me a lot of time... That's why I though I would mention it.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.