This might be a silly question but i was wondering if it would be a good idea to delete all expired \"sessions\" from my database, every 15 minutes?
Or just leave it
If your table looks like that
SessionId datatype,
SessionLastTouch datetime
then when registering the new session do some cleanup after writing(session issue or touch) to the table, like this:
delete from YourSessionsRegister WHERE SessionLastTouch < DATEADD(min, -15, GETDATE())
BUT
May be better way is to cleanup the session register based on some schedule - to reduce DB load in peak hours - simply create the job, which cleans up the register every night or smth. like this