diff --git a/config/config.go b/config/config.go
index 493e4ea8081b964cab19ad62e150d1656ec7184a..b1169e73f650fe92defc52a4b57828d31d39efd8 100644
--- a/config/config.go
+++ b/config/config.go
@@ -11,17 +11,18 @@ import (
 
 // Default config parameters values
 const (
-	DefaultBaseURL          = "http://localhost"
-	DefaultDatabaseURL      = "postgres://postgres:postgres@localhost/miniflux2?sslmode=disable"
-	DefaultWorkerPoolSize   = 5
-	DefaultPollingFrequency = 60
-	DefaultBatchSize        = 10
-	DefaultDatabaseMaxConns = 20
-	DefaultListenAddr       = "127.0.0.1:8080"
-	DefaultCertFile         = ""
-	DefaultKeyFile          = ""
-	DefaultCertDomain       = ""
-	DefaultCertCache        = "/tmp/cert_cache"
+	DefaultBaseURL                 = "http://localhost"
+	DefaultDatabaseURL             = "postgres://postgres:postgres@localhost/miniflux2?sslmode=disable"
+	DefaultWorkerPoolSize          = 5
+	DefaultPollingFrequency        = 60
+	DefaultBatchSize               = 10
+	DefaultDatabaseMaxConns        = 20
+	DefaultListenAddr              = "127.0.0.1:8080"
+	DefaultCertFile                = ""
+	DefaultKeyFile                 = ""
+	DefaultCertDomain              = ""
+	DefaultCertCache               = "/tmp/cert_cache"
+	DefaultSessionCleanupFrequency = 24
 )
 
 // Config manages configuration parameters.
diff --git a/main.go b/main.go
index 02f53c06405df9b1a9da513ca43097517f41a7cf..a252c61005efc38ec2640644159007aa749e03fb 100644
--- a/main.go
+++ b/main.go
@@ -47,13 +47,15 @@ func run(cfg *config.Config, store *storage.Storage) {
 	pool := scheduler.NewWorkerPool(feedHandler, cfg.GetInt("WORKER_POOL_SIZE", config.DefaultWorkerPoolSize))
 	server := server.NewServer(cfg, store, pool, feedHandler)
 
-	scheduler.NewScheduler(
+	scheduler.NewFeedScheduler(
 		store,
 		pool,
 		cfg.GetInt("POLLING_FREQUENCY", config.DefaultPollingFrequency),
 		cfg.GetInt("BATCH_SIZE", config.DefaultBatchSize),
 	)
 
+	scheduler.NewSessionScheduler(store, config.DefaultSessionCleanupFrequency)
+
 	<-stop
 	logger.Info("Shutting down the server...")
 	ctx, _ := context.WithTimeout(context.Background(), 5*time.Second)
diff --git a/scheduler/scheduler.go b/scheduler/scheduler.go
index 3eac0d167a2af71590264e740d795dc7e6198d3f..cc3de6aa4774d3b05c15e2959960e9f67a92355e 100644
--- a/scheduler/scheduler.go
+++ b/scheduler/scheduler.go
@@ -11,18 +11,30 @@ import (
 	"github.com/miniflux/miniflux/storage"
 )
 
-// NewScheduler starts a new scheduler that push jobs to a pool of workers.
-func NewScheduler(store *storage.Storage, workerPool *WorkerPool, frequency, batchSize int) {
+// NewFeedScheduler starts a new scheduler that push jobs to a pool of workers.
+func NewFeedScheduler(store *storage.Storage, workerPool *WorkerPool, frequency, batchSize int) {
 	go func() {
 		c := time.Tick(time.Duration(frequency) * time.Minute)
-		for now := range c {
+		for _ = range c {
 			jobs, err := store.NewBatch(batchSize)
 			if err != nil {
-				logger.Error("[Scheduler] %v", err)
+				logger.Error("[FeedScheduler] %v", err)
 			} else {
-				logger.Debug("[Scheduler:%v] => Pushing %d jobs", now, len(jobs))
+				logger.Debug("[FeedScheduler] Pushing %d jobs", len(jobs))
 				workerPool.Push(jobs)
 			}
 		}
 	}()
 }
+
+// NewSessionScheduler starts a new scheduler that clean old sessions.
+func NewSessionScheduler(store *storage.Storage, frequency int) {
+	go func() {
+		c := time.Tick(time.Duration(frequency) * time.Hour)
+		for _ = range c {
+			nbSessions := store.CleanOldSessions()
+			nbUserSessions := store.CleanOldUserSessions()
+			logger.Debug("[SessionScheduler] cleaned %d sessions and %d user sessions", nbSessions, nbUserSessions)
+		}
+	}()
+}
diff --git a/storage/session.go b/storage/session.go
index 17a63e2bd7d21622127cd5041d18c9c0edc702e3..106d61807ea21208d98210cf5114293c23d77120 100644
--- a/storage/session.go
+++ b/storage/session.go
@@ -75,3 +75,17 @@ func (s *Storage) FlushAllSessions() (err error) {
 
 	return nil
 }
+
+// CleanOldSessions removes sessions older than 30 days.
+func (s *Storage) CleanOldSessions() int64 {
+	query := `DELETE FROM sessions
+		WHERE id IN (SELECT id FROM sessions WHERE created_at < now() - interval '30 days')`
+
+	result, err := s.db.Exec(query)
+	if err != nil {
+		return 0
+	}
+
+	n, _ := result.RowsAffected()
+	return n
+}
diff --git a/storage/user_session.go b/storage/user_session.go
index ffb82fcd8c5b03f2a9f83c6cd261c6e3a36b5d7a..63e25e023fb3c06f5e42cc05571be82ce76a586a 100644
--- a/storage/user_session.go
+++ b/storage/user_session.go
@@ -127,3 +127,17 @@ func (s *Storage) RemoveUserSessionByID(userID, sessionID int64) error {
 
 	return nil
 }
+
+// CleanOldUserSessions removes user sessions older than 30 days.
+func (s *Storage) CleanOldUserSessions() int64 {
+	query := `DELETE FROM user_sessions
+		WHERE id IN (SELECT id FROM user_sessions WHERE created_at < now() - interval '30 days')`
+
+	result, err := s.db.Exec(query)
+	if err != nil {
+		return 0
+	}
+
+	n, _ := result.RowsAffected()
+	return n
+}