Showing
1 changed file
with
5 additions
and
2 deletions
@@ -130,8 +130,11 @@ static dispatch_queue_t persisitingQueue; | @@ -130,8 +130,11 @@ static dispatch_queue_t persisitingQueue; | ||
130 | 130 | ||
131 | - (NSString *)session | 131 | - (NSString *)session |
132 | { | 132 | { |
133 | - NSString *rawSession = [[OpenUDID value] stringByAppendingString:[self timestamp]]; | ||
134 | - return [rawSession md5]; | 133 | + if (!_session || [_session isEqualToString:@""]) { |
134 | + _session = [[OpenUDID value] stringByAppendingString:[self timestamp]]; | ||
135 | + } | ||
136 | + | ||
137 | + return [_session md5]; | ||
135 | } | 138 | } |
136 | 139 | ||
137 | #pragma mark - Functions | 140 | #pragma mark - Functions |
-
Please register or login to post a comment