Advertisement
Guest User

Untitled

a guest
Jul 15th, 2013
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.92 KB | None | 0 0
  1. /*
  2. |--------------------------------------------------------------------------
  3. | Session Variables
  4. |--------------------------------------------------------------------------
  5. |
  6. | 'sess_cookie_name'        = the name you want for the cookie
  7. | 'sess_expiration'         = the number of SECONDS you want the session to last.
  8. |   by default sessions last 7200 seconds (two hours).  Set to zero for no expiration.
  9. | 'sess_expire_on_close'    = Whether to cause the session to expire automatically
  10. |   when the browser window is closed
  11. | 'sess_encrypt_cookie'     = Whether to encrypt the cookie
  12. | 'sess_use_database'       = Whether to save the session data to a database
  13. | 'sess_table_name'         = The name of the session database table
  14. | 'sess_match_ip'           = Whether to match the user's IP address when reading the session data
  15. | 'sess_match_useragent'    = Whether to match the User Agent when reading the session data
  16. | 'sess_time_to_update'     = how many seconds between CI refreshing Session Information
  17. |
  18. */
  19. $config['sess_cookie_name']     = 'ci_session';
  20. $config['sess_expiration']      = 7200;
  21. $config['sess_expire_on_close'] = FALSE;
  22. $config['sess_encrypt_cookie']  = FALSE;
  23. $config['sess_use_database']    = FALSE;
  24. $config['sess_table_name']      = 'ci_sessions';
  25. $config['sess_match_ip']        = FALSE;
  26. $config['sess_match_useragent'] = TRUE;
  27. $config['sess_time_to_update']  = 300;
  28.  
  29. /*
  30. |--------------------------------------------------------------------------
  31. | Cookie Related Variables
  32. |--------------------------------------------------------------------------
  33. |
  34. | 'cookie_prefix' = Set a prefix if you need to avoid collisions
  35. | 'cookie_domain' = Set to .your-domain.com for site-wide cookies
  36. | 'cookie_path'   =  Typically will be a forward slash
  37. | 'cookie_secure' =  Cookies will only be set if a secure HTTPS connection exists.
  38. |
  39. */
  40. $config['cookie_prefix']    = "";
  41. $config['cookie_domain']    = "";
  42. $config['cookie_path']      = "/";
  43. $config['cookie_secure']    = FALSE;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement