tailieunhanh - HandBooks Professional Java-C-Scrip-SQL part 259

Tham khảo tài liệu 'handbooks professional java-c-scrip-sql part 259', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | f The domain The expiration time as a Time object True if secure cookie CGI Session CGI session class CGI Session maintains a persistent session between HTTP accesses. Session information is represented by string to string mapping. Session information can be stored via the user-defined database class. Required Library require cgi session Example request cgi session cgi CGI new html3 s CGI Session cgi if s last_modified previously saved data t s last_modified .to_i else t save data to session database s last_modified end . continues . Class Methods CGI Session new cgi _ option Starts a new CGI session and returns the corresponding CGI Session object. option may be an option hash specifying one or more of the following Key Function Default value session_key Key name holding the session ID _session_id session_id Unique session ID Generated automatically new_session If true a new session is created false database_manager Database manager class for storing session data CGI Session FileStore An option hash can specify options when creating the database manager object. The default database manager class CGI Session Filestore recognizes the following options Key Function Default value tmpdir Directory for temporary files tmp prefix Prefix for temporary files None Methods for Database Manager Database manager object should have following methods initialize session options Initializes the database. session is a CGI Session object. options is an option hash that passed to CGI Session new restore Returns the hash that contains session-specific data from the database update Updates the hash returned by restore close Closes the database delete Removes the session-specific data from the database Instance Methods s key Returns the value for the specified session key s key value Sets the value for the specified session key Deletes the session Writes session data to the database calling the update method of the .

TÀI LIỆU LIÊN QUAN
10    158    1
6    184    1
7    162    1
5    157    1
6    160    1
6    152    1
6    150    1
6    206    1
7    154    1