Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CGI::Session
- # If a key is specified, deletes that key from the session pseudo-hash. Otherwise,
- # performs the classic behavior of deleting the session from storage.
- def delete(key=nil)
- if key
- @data ||= @dbman.restore
- @data.delete(key)
- else
- @dbman.delete
- @dbprot.clear
- end
- end
- end
Add Comment
Please, Sign In to add comment