S_SESSION variable (user role) not recognised

Session login and start, with Session variables declaration and store: Variable $_SESSION[‘estado’] works fine as it loads content if it is activo, and if not locates to other directory: But it does not seem to recognise $_SESSION[‘us_type’], as even when Database has correct fieldname and value *(us_type, 1)* php does not load under this conditional, locating user as if … Read more

Form submission: PHP S_SESSION statements within a foreach loop

Let’s suppose I have the following PHP code which attempts to read from an array called $arr which takes on the values {fullname, studentnumber, email}. Upon submission of my HTML form, this PHP code will execute the foreach loop, and store the values posted to the page in the $_SESSION array. The above code doesn’t work as intended. If I … Read more