Session stored in the database. Authorization common at 2 sites(2 domains, sites lie side by side on the same server). When the user is authenticated on one site, there is a redirect to the second, where session_name() registers the same value as on the first website (in the cookie). Table with session data are common for 2 sites.
On an old hosting all worked norms, the new — yet.
Problem description —
I've logged in from one site. Go to the second, from the database to retrieve data(read function), then all the rules. But right after session_start(), do print_r($_SESSION) and see an empty array. I.e., line gave, got ... got nothing. This happens only with data recorded on one site that I'm trying to read on another.
They found the data on the old host it was written in the form of serialized massive. Here — 'rJFJvf6LVaiQoSWdAHmIFSu5Zfx-393AnbN81sd2B5jmEeWlhKYJB_E9Lv93bjvw'. Can be in this case.
session.serialize_handler = php both hosting
php 5.2.4(old) / 5.2.14(new)
all the php settings the block session — the same.