Scenario
Problem
$_SESSION['vendor_checkout_total'] seems to never be actually saved. pay_checkout_total.php cannot find this session var (undefined index).
Yes, session_start() is being called prior to accessing/saving session vars.
All other session vars (in other PHP files) appear to be stored and accessed correctly.
What I've tried so far
session.save_path = "/var/lib/php5/sessions"
session.gc_probability=0
session.cookie_path = "/"
session.use_cookies = 1
Any help or ideas would be sincerely appreciated. I don't know what else to look for.
UPDATE I found a session_write_close() inside an include of an included file in my scripts. Once I removed it, session variables behaved as expected.
(this is a comment, not an answer, but its a bit long).
Sounds like you are trying to debug an entire application in one go. The first thing you should be doing is building a very simple test rig to evaluate the session problem:
<?php
error_reporting(E_ALL);
session_start();
print "Iteration: " . ++$_SESSION['counter'];
And find out why your sessions aren't behaving as you expect.
You say that the cookie is being populated and returned correctly. This implies that there is a bug in the code you've not shown us or that the session data is not being written due to a configuration / permissions issue.
Check your session.save_path (assuming you're using the default handler)