Skip to main content
Notice removed Draw attention by Gary Holiday
Bounty Ended with Andrew's answer chosen by Gary Holiday
Notice added Draw attention by Gary Holiday
Bounty Started worth 50 reputation by Gary Holiday
deleted 85 characters in body
Source Link
Gary Holiday
  • 3.6k
  • 4
  • 37
  • 87
 public static function startSession() { ini_set('session.use_only_cookies', SESSION_USE_ONLY_COOKIEStrue); $cookieParams = session_get_cookie_params(); session_set_cookie_params( $cookieParams["lifetime"], $cookieParams["path"], $cookieParams["domain"], SESSION_SECURE, SESSION_HTTP_ONLY ); session_start();     if (SESSION_REGENERATE_ID)  session_regenerate_id(SESSION_REGENERATE_IDtrue); } 
 public static function startSession() { ini_set('session.use_only_cookies', SESSION_USE_ONLY_COOKIES); $cookieParams = session_get_cookie_params(); session_set_cookie_params( $cookieParams["lifetime"], $cookieParams["path"], $cookieParams["domain"], SESSION_SECURE, SESSION_HTTP_ONLY ); session_start();     if (SESSION_REGENERATE_ID)  session_regenerate_id(SESSION_REGENERATE_ID); } 
 public static function startSession() { ini_set('session.use_only_cookies', true); $cookieParams = session_get_cookie_params(); session_set_cookie_params( $cookieParams["lifetime"], $cookieParams["path"], $cookieParams["domain"], SESSION_SECURE, SESSION_HTTP_ONLY ); session_start(); session_regenerate_id(true); } 
added 146 characters in body
Source Link
Gary Holiday
  • 3.6k
  • 4
  • 37
  • 87

Here are my Session settings when printing php_info() enter image description here

Here are my Session settings when printing php_info() enter image description here

Added an update to the question
Source Link
Gary Holiday
  • 3.6k
  • 4
  • 37
  • 87

UPDATE

session_regenerate_id(true) is not the problem.

UPDATE

session_regenerate_id(true) is not the problem.

added 1 character in body
Source Link
Gary Holiday
  • 3.6k
  • 4
  • 37
  • 87
Loading
deleted 865 characters in body
Source Link
Gary Holiday
  • 3.6k
  • 4
  • 37
  • 87
Loading
Added more information on the problem
Source Link
Gary Holiday
  • 3.6k
  • 4
  • 37
  • 87
Loading
Source Link
Gary Holiday
  • 3.6k
  • 4
  • 37
  • 87
Loading