function tb_show_debug_info in TinyBrowser 7
File
- tinybrowser/
tinybrowser.php, line 16
Code
function tb_show_debug_info() {
global $tinybrowser;
global $_SESSION;
global $_COOKIE;
print "---- SESSION ----<br/>\n";
print "<pre>\n";
print_r($_SESSION);
print "</pre>\n";
print "---- COOKIE ----<br/>\n";
print "<pre>\n";
print_r($_COOKIE);
print "</pre>\n";
print "session_id is " . session_id() . "<br/>\n";
print "session_name is " . session_name() . "<br/>\n";
print "uid is " . $tinybrowser['uid'] . "<br/>\n";
print "tinybrowser docroot is " . $tinybrowser['docroot'] . "<br/>\n";
print "tinybrowser sessioncheck is " . $tinybrowser['sessioncheck'] . "<br/>\n";
if (isset($_SESSION[$tinybrowser['sessioncheck']])) {
print "session variable is set! [" . $_SESSION[$tinybrowser['sessioncheck']] . "]<br/>\n";
print "sessioncheck is [" . $tinybrowser['sessioncheck'] . "]<br/>\n";
}
else {
print "session variable is NOT set<br/>\n";
}
if (isset($_SESSION['tinybrowser_module'])) {
print "session variable is set! [" . $_SESSION['tinybrowser_module'] . "]<br/>\n";
}
else {
print "session variable tinybrowser_module is NOT set<br/>\n";
}
}