About Features Downloads Getting Started Documentation Events Support GitHub

Site Tools


legacy:vufind_1.x_developer_manual:creating_a_session_handler

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
legacy:vufind_1.x_developer_manual:creating_a_session_handler [2015/12/10 13:07]
demiankatz ↷ Page moved from creating_a_session_handler to legacy:vufind_1.x_developer_manual:creating_a_session_handler
legacy:vufind_1.x_developer_manual:creating_a_session_handler [2018/12/19 09:06] (current)
demiankatz
Line 1: Line 1:
 ====== Creating a Session Handler ====== ====== Creating a Session Handler ======
  
-// This page refers ​to VuFind 1.x; see [[development:​plugins:​session_handlers|the current documentation]] for details on later versions. //+// This outdated ​page has been deleted ​to prevent confusionfor current documentation, ​see  [[development:​plugins:​session_handlers|this page]]. To view old content ​for historical interest, see the "Old Revisions"​ list below. //
  
-VuFind currently has the capability of supporting sessions stored on disk, in a database or in MemCache. ​ You can also create your own handlers by following these steps: 
- 
-1.) Create a new file in the web/sys folder. ​ Its name should match the name of the class it defines. ​ You can use any name you like, but by convention, it is recommended that you end it in "​Session." ​ (i.e. FileSession,​ MySQLSession,​ etc.). 
- 
-2.) Your new class should extend the base class SessionInterface found in web/​sys/​SessionInterface.php. ​ Be sure to read the comments in that file, as there are some important details you must deal with -- particularly calling the parent::​destroy() method to ensure proper search cleanup. 
- 
-3.) For additional details on session handling, see the [[http://​php.net/​manual/​en/​function.session-set-save-handler.php|PHP documentation]]. 
- 
-4.) Once your class is created, you can activate it by editing the [Session] section of web/​conf/​config.ini. ​ Just set the "​type"​ setting to the name of your new class! 
legacy/vufind_1.x_developer_manual/creating_a_session_handler.txt · Last modified: 2018/12/19 09:06 by demiankatz