Hi smapdi,
This is a just an idea ... not definite at all ... but could it something to do with the fact that $_SESSION['product'] is being decalred and a re-direct (using the header() function) is happening on the same page (usercheck.php).
Maybe the $_SESSION variable doesn't actually get a chance to be created on the server before the re-direct occurs!
I know that header('Location: ...') won't work if any headers have already been sent and I think sessions use headers, so it's a possibility.
You could actually check to see if this is the problem just by declaring ...
$_SESSION['product'] = '';
... on the 'login' page.
It's not a solution though, because I suppose that you actually want to set the value of $_SESSION['product'] on usercheck.php as well.
And if you still get the 'undefined index: product' error on the salesinfo.php page, we'll have to think again!!
Paul :queasy: