I have a login script coded in php and mysqli. upon submission and successful authentication it redirects to success.php to write sessions. my success page looks like this.
Use session_start(); inside all page before using $_SESSION variable in PHP. session_start(); function use to initialize session process.
your success.php should be.
"); } else { print "Session partner id not set"; } ?>