Guest User

Untitled

a guest
Apr 19th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. class CGI::Session
  2. # If a key is specified, deletes that key from the session pseudo-hash. Otherwise,
  3. # performs the classic behavior of deleting the session from storage.
  4. def delete(key=nil)
  5. if key
  6. @data ||= @dbman.restore
  7. @data.delete(key)
  8. else
  9. @dbman.delete
  10. @dbprot.clear
  11. end
  12. end
  13. end
Add Comment
Please, Sign In to add comment