Simply replace the line enable :sessions with use Rack::Session::Pool.All enable :session does is adding Rack::Session::Cookie to the stack (which you want to avoid). The session helper will still work.
enable :sessions
use Rack::Session::Pool
enable :session
Rack::Session::Cookie
session