flourishlib / flourish-classes

The class files for Flourish
http://flourishlib.com
182 stars 78 forks source link

fSession Data Gone on Refresh #184

Open ericktheredd opened 11 years ago

ericktheredd commented 11 years ago

I am setting a client_id into the Session. I can see directly after setting the ID, that the ID is located within the Session. So when I go to the next page, I would expect to find the ID still inside the Session. But there is nothing in the Session except for these 2 items:

[fSession::type] => normal [fSession::expires] => 1368136924

Here is basically what I am doing:

define('SESSION_PATH', 'c:\xampp\htdocs\my_app\tmp\sessions\\');
fSession::setPath(SESSION_PATH);
fSession::setLength('30 minutes');
fSession::ignoreSubdomain();
fSession::open();

echo "ID: " . fSession::get('my_id', 'Got Nothing') . "<br/>";
fSession::set('my_id', 69);
echo "ID: " . fSession::get('my_id', 'Got Nothing') . "<br/>";

Before refreshing, I comment out the last 2 lines and I should see the ID spit out to display on Refresh. But everytime I do, i get "Got Nothing".

Am I missing something?

Thank you. Eric