blob: 496401c5a5a63ee1e29115086e8fcf561b346646 [file] [log] [blame]
diff -r -u libcgi-1.0_back/src/session.c libcgi-1.0/src/session.c
--- libcgi-1.0_back/src/session.c 2024-10-24 13:02:58.302808361 +0800
+++ libcgi-1.0/src/session.c 2024-10-24 13:04:34.088241739 +0800
@@ -613,7 +613,7 @@
return SESS_NO_ACCESS_TIME;
}
- last_time = (time_t)atol(value);
+ last_time = (time_t)atoll(value);
if (cur_tv.tv_sec - last_time > MAX_SESSION_TIMEOUT) {
cgi_session_destroy();
@@ -622,7 +622,7 @@
//refresh last access time
memset(tmp, 0, TMP_BUF_MAX);
- snprintf(tmp, TMP_BUF_MAX - 1, "%u", cur_tv.tv_sec );
+ snprintf(tmp, TMP_BUF_MAX - 1, "%lld", cur_tv.tv_sec );
if ( cgi_session_alter_var(LAST_ACCESS_TIME, tmp)) {
return SESS_VALID;
}