草庐IT

SecureDevice

全部标签

cookies - 用户 cookie 验证随机失败

我使用两个结构来保存用户信息//SecureDeviceholdsauser'sdevice'sinfostypeSecureDevicestruct{Namestring//DefinedbytheuserDeviceIPstringTokenstruct{TokenstringStartingDatetime.Time//Thetokenissupposedtolastonlyaweekbeforebecominginvalid}}//GlobalUserisastructdefiningalluser'sinfosregisteredinsidetheservertypeGlob