davidannis Posted June 18, 2014 Share Posted June 18, 2014 header('Location:http://main_function_page.htm'); exit; I believe there is a small typo here. Make sure that you have a space between Location: and http:// Quote Link to comment https://forums.phpfreaks.com/topic/289061-php-session-variables-unavailable/page/2/#findComment-1482856 Share on other sites More sharing options...
selanefa Posted December 15, 2015 Share Posted December 15, 2015 This might be a little late for you, but I stumbled across the same problem and looked for a solution in this forum. The solution that worked for me was: session_set_cookie_params($cookieParams["lifetime"], $cookieParams["path"], $cookieParams["domain"], true, true); the SECURE parameter ( the first true ) was set to true although I wasn't using https. Enable this only if you have https! cheers! Quote Link to comment https://forums.phpfreaks.com/topic/289061-php-session-variables-unavailable/page/2/#findComment-1527970 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.