I have a piece of code that is checking to see if a session ID has been set for my site, and if it hasn't, it assigns it a value from my URL. Below is the code I have:
if (!$_SESSION['test_id']){
$_SESSION['test_id'] = strip_tags($_REQUEST["id"]);
};
My problem is not a huge one, but I am getting a notice that says:
Undefined index: test_id
Is there a better way assign this variable without setting off the notice? This piece fo code is in an Expression Engine platform (Code Igniter) so I don't have total control over the display of notices. This particular page has all error reporting turned off in my code, but it is still showing up.
Thanks so much for any help!