Add date of session in log, fix erroneous magic checks