- or download this
sub store {
my ($self, $sid, $options, $data) = @_;
...
return $dbh->selectrow_array(qq|SELECT RELEASE_LOCK("$sid")|);
}
- or download this
CREATE TABLE sessions (
id CHAR(32) NOT NULL UNIQUE,
expires datetime,
a_session TEXT NOT NULL
);
- or download this
select id from sessions where expires <= NOW() or expires is null