Merge lp:~vierbergenlars/remotecp-panel/bug-790812 into lp:remotecp-panel/1.x

Proposed by Lars Vierbergen
Status: Rejected
Rejected by: Lars Vierbergen
Proposed branch: lp:~vierbergenlars/remotecp-panel/bug-790812
Merge into: lp:remotecp-panel/1.x
Diff against target: 12 lines (+1/-1)
1 file modified
inc/sqlsess/sqlsess.php (+1/-1)
To merge this branch: bzr merge lp:~vierbergenlars/remotecp-panel/bug-790812
Reviewer Review Type Date Requested Status
Lars Vierbergen Disapprove
Review via email: mp+63025@code.launchpad.net

Commit message

Bug fix for sqlsess

Description of the change

Bug fix for SqlSess

To post a comment you must log in.
Revision history for this message
Lars Vierbergen (vierbergenlars) wrote :
review: Disapprove

Unmerged revisions

116. By Lars Vierbergen

We now check with MySQL

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'inc/sqlsess/sqlsess.php'
2--- inc/sqlsess/sqlsess.php 2011-01-30 17:23:45 +0000
3+++ inc/sqlsess/sqlsess.php 2011-05-31 19:04:05 +0000
4@@ -13,7 +13,7 @@
5 $this->connection=$database;
6 $this->table=$tbl;
7 //Clean old sessions
8- $this->connection->query("DELETE FROM `$this->table` WHERE `created` < '".date('Y-m-d H:i:s',time()-30*60)."'"); //30 min deletion timeout
9+ $this->connection->query("DELETE FROM `$this->table` WHERE `created` < NOW()+30*60"); //30 min deletion timeout
10 }
11 /**
12 * bool session_start( void )

Subscribers

People subscribed via source and target branches

to all changes: