diff --git a/httpd/httpd.c b/httpd/httpd.c index f87de897..74c11148 100644 --- a/httpd/httpd.c +++ b/httpd/httpd.c @@ -340,7 +340,7 @@ __xdata uint8_t *scan_header(__xdata uint8_t * __xdata p) read_reg_timer(&now); - if (session) { + if (session && session_id[0]) { if (now - last_session_use > SESSION_TIMEOUT) { dbg_string("Session expired\n"); } else {