Callback handler (17)

configuration directives

  • Manage session storage media

Determine how session information is stored

 session.save_handler = files (flat file) mm (shared memory) sqlite (SQLite database) user (custom)

  • set session file path

 If session.save_handler = files, then session.save_path must point to the storage directory

  • Automatically enable sessions

 session.auto_start = 1 enable auto-start session

  • set session name

 session.name = string set session name

  • Choose between cookies or URL rewriting

 session.use_cookies = 0 will use URL rewriting

  • Automatic URL rewriting

 

  • Set the lifetime of the session cookie

 

  • Valid URL path to set session cookie

 

  • Set cache direction for session-enabled pages

 

handle session

  • start a session

 

  • destroy session

 

  • Set and get session ID

 

  • Create and delete session variables

 

  • Encoding and decoding session data

 

  • Actual session handling instance

 

  • Automatically log in as the returning user

 

  • Generate an index of recently viewed documents

 

Create a custom session handler

  • Assume custom session functions to PHP logic

 

  • Using a custom MySQL-based session handler

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324634823&siteId=291194637