Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. 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.4 · 3.3 · 3.2 · 3.0