Multi site issue with the session

by Varun Sharma   Last Updated July 27, 2018 07:08 AM

I am using the multi site option of wordpress . I setup multisite on https . I am getting the issue with the session . These are my site configurations

define('WP_ALLOW_MULTISITE', true );
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'www.example.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
define('WP_DEFAULT_THEME', 'child');
define('ADMIN_COOKIE_PATH', '/');
define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '');
define('SITECOOKIEPATH', '');

I am using a custom form for login user

$credentials=array(
        'user_login'=>$email,
        'user_password'=>$password,
        'remember'=>true
);
$user=wp_signon($credentials,false);


Related Questions




Add .php to end of all WordPress Pages (multisite)

Updated October 20, 2017 05:08 AM


Prevent network activation of plugin

Updated April 21, 2016 08:03 AM