liquid_feedback_core
diff lf_update.c @ 183:ed2f94a397cd
Dropped session table (it is up to frontends to have their own session store)
author | jbe |
---|---|
date | Fri Jul 29 16:04:17 2011 +0200 (2011-07-29) |
parents | 0d03c57ebae5 |
children | af3d208e81be |
line diff
1.1 --- a/lf_update.c Fri Jul 29 15:23:42 2011 +0200 1.2 +++ b/lf_update.c Fri Jul 29 16:04:17 2011 +0200 1.3 @@ -54,22 +54,6 @@ 1.4 return 1; 1.5 } 1.6 1.7 - // delete expired sessions: 1.8 - status = PQexec(db, "DELETE FROM \"expired_session\""); 1.9 - if (!status) { 1.10 - fprintf(stderr, "Error in pqlib while sending SQL command deleting expired sessions\n"); 1.11 - err = 1; 1.12 - } else if ( 1.13 - PQresultStatus(status) != PGRES_COMMAND_OK && 1.14 - PQresultStatus(status) != PGRES_TUPLES_OK 1.15 - ) { 1.16 - fprintf(stderr, "Error while executing SQL command deleting expired sessions:\n%s", PQresultErrorMessage(status)); 1.17 - err = 1; 1.18 - PQclear(status); 1.19 - } else { 1.20 - PQclear(status); 1.21 - } 1.22 - 1.23 // check last login: 1.24 status = PQexec(db, "SELECT \"check_last_login\"()"); 1.25 if (!status) {