summaryrefslogtreecommitdiff
path: root/db/session.go
diff options
context:
space:
mode:
Diffstat (limited to 'db/session.go')
-rw-r--r--db/session.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/db/session.go b/db/session.go
index b8365ff..8590d2f 100644
--- a/db/session.go
+++ b/db/session.go
@@ -73,14 +73,6 @@ func extractSession(s Scanner) (Session, error) {
}
-func (p *Phlox) TouchSession(session Session) error {
- now := time.Now().UTC()
- nowStr := now.Format(time.RFC3339)
- _, err := p.db.Exec("update sessions set modified=? where sessionid=?;", nowStr, session.Id)
- return err
-}
-
-
func (p *Phlox) CheckSession(session Session) (bool, error) {
row := p.db.QueryRow("select * from sessions where sessionid = ?", session.Id)
session, err := extractSession(row)