Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

CGI::Session#delete

delete

Delete the session from storage. Also closes the storage.

Note that the session’s data is not automatically deleted upon the session expiring.

See also #create_new_id #update #close also in 3.3 · 3.2 · 3.1 · 3.0