Issue: Unable to login to back end of magento 2 after restoring a backup from MagManager.

Reason is because the time stamp gets restored in the user session table as well.

Clearing the values enables new sessions times to be added and it allows login.

Solution:


ALTER TABLE `admin_user_session` CHANGE `created_at` `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Created Time';

ALTER TABLE `admin_user_session` CHANGE `updated_at` `updated_at` TIMESTAMP on update CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Update Time';