2020-08-23, 06:22 PM
Hi
Assuming my domain is: example.com
MyBB is installed in www.example.com/main
I created a custom page which is sitting in www.example.com/loggedin/index.php - it loads fine but doesn't show me being logged in.
If I go to www.example.com/main it will show me logged in.
My cookies are set as the following:
Domain: .example.com
Cookie Path: /main/
Please can someone tell me where I'm going wrong?
Assuming my domain is: example.com
MyBB is installed in www.example.com/main
I created a custom page which is sitting in www.example.com/loggedin/index.php - it loads fine but doesn't show me being logged in.
If I go to www.example.com/main it will show me logged in.
<?php
define('IN_MYBB', 1);
require_once '../global.php';
add_breadcrumb("Logged In", "index.php");
eval("\$html = \"".$templates->get("member_loggedin")."\";");
output_page($html);
?>
My cookies are set as the following:
Domain: .example.com
Cookie Path: /main/
Please can someone tell me where I'm going wrong?