php - Session dies after page load in chrome nowhere else -
anyone have suggestions or encountered problem - since moving ssl chrome has hated sessions. i've tried simple setting session , echoing before it's set test - after sec time page loads session displays. every browser works besides chrome.
i've tried throwing in still doesn't work:
ini_set('session.use_trans_sid', false); ini_set('session.use_cookies', true); ini_set('session.use_only_cookies', true); $https = false; if(isset($_server['https']) , $_server['https'] != 'off') { $https = true; } $dirname = rtrim(dirname($_server['php_self']), '/').'/'; session_name('token'); session_name('money_republic_token'); session_set_cookie_params(0, $dirname, $_server['http_host'], $https, true); session_start();
i absolutely running out of ideas - why on earth chrome treat sessions differently, ie works!!
if site resides on localhost have nail bug:
chrome.cookies fails localhost domains:
php
No comments:
Post a Comment