Changeset 1273
- Timestamp:
- 11/24/07 16:35:01 (11 months ago)
- Files:
-
- branches/1.0/src/config/wp-config-sample.php (modified) (1 diff)
- branches/1.0/src/lib/session.php (modified) (1 diff)
- branches/1.0/src/lyceum/wp-settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0/src/config/wp-config-sample.php
r1272 r1273 22 22 define('MAINDOMAIN', 'blogs.example.com'); 23 23 define('DEFAULTBLOG', false); 24 25 // Sessions 26 // 27 // It is highly recommended that you set your own session path, so that other php applications 28 // on your server (including possibly those from other users on shared hosting) do not prematurely 29 // clear your session data. You must ensure that this directory exists and is writable 30 // by the webserver. Here are two recommended paths for *nix and Windows: 31 // define('SESSIONPATH', '/tmp/blogs.example.com'); // *nix 32 // define('SESSIONPATH', '\\TEMP\blogs.example.com'); // Windows 33 // 34 // Database sessions will be fully supported in Lyceum 1.1 and are currently experimental 35 // define('DBSESSIONS', true); 24 36 25 37 //you probably want to leave these as they are branches/1.0/src/lib/session.php
r430 r1273 1 1 <?php 2 2 3 /*session_set_save_handler('_open', 4 '_close', 5 '_read', 6 '_write', 7 '_destroy', 8 '_clean');*/ 3 if (defined('DBSESSIONS')) 4 session_set_save_handler( '_open', 5 '_close', 6 '_read', 7 '_write', 8 '_destroy', 9 '_clean' ); 9 10 10 11 function _open() branches/1.0/src/lyceum/wp-settings.php
r1271 r1273 262 262 register_shutdown_function('shutdown_action_hook'); 263 263 264 session_set_cookie_params ( 1209600, '/', '.'.MAINDOMAIN ); // Two weeks 264 if (defined('SESSIONPATH')) 265 ini_set('session.save_path', SESSIONPATH); 266 267 $timeout = 315569260; // 315569260 seconds = 10 years 268 ini_set('session.gc_maxlifetime', $timeout); 269 session_set_cookie_params( $timeout, '/', '.'.MAINDOMAIN ); 265 270 session_start(); 266 271
