close

close() Instance Public methods Store session data on the server and close the session storage. For some session storage types, this is a no-op.

delete

delete() Instance Public methods Delete the session from storage. Also closes the storage. Note that the session's data is not automatically deleted upon the session expiring.

update

update() Instance Public methods Store session data on the server. For some session storage types, this is a no-op.

accept_charset

accept_charset() Class Public methods Return the accept character set for all new CGI instances.

accept_charset=

accept_charset=(accept_charset) Class Public methods Set the accept character set for all new CGI instances.

escape

escape(string) Class Public methods URL-encode a string. url_encoded_string = CGI::escape("'Stop!' said Fred") # => "%27Stop%21%27+said+Fred"

escapeElement

escapeElement(string, *elements) Class Public methods Escape only the tags of certain HTML elements in string. Takes an element or elements or array of elements. Each element is specified by the name of the element, without angle brackets. This matches both the start and the end tag of that element. The attribute list of the open tag will also be escaped (for instance, the double-quotes surrounding attribute values). print CGI::escapeElement('<BR><A HREF="url"></A&g

escapeHTML

escapeHTML(string) Class Public methods Escape special characters in HTML, namely &"<> CGI::escapeHTML('Usage: foo "bar" <baz>') # => "Usage: foo &quot;bar&quot; &lt;baz&gt;"

escape_element

escape_element(str) Class Public methods Synonym for ::escapeElement

escape_html

escape_html(str) Class Public methods Synonym for ::escapeHTML