Experimenting with a new project using 3.0.0 under IIS 7 and PHP 5.3.8.
This is a fresh Igniter directory, not an upgrade.
I seem to be getting inconsistent results when writing session data through the new Sessions library.
This is basically user log-in model code migrated over from an older CIv1.73 project. (The controller & model code was migrated, not the CI installation.)
The Session library initializes according to the log, using the files driver.
When initially accessing the page, my site controller sets an anonymous user ID to the session data. I see the session data as being set. __ci_last_regenerate and an anonymous userID are set. It seems obvious that the session data is at least partially setting.
Upon login, my controller calls a model function that checks the posted credentials and when matched, sets the username and userID session data and returns a logged-in flag to the controller. Log traces show the code being called - or, at least, the log trace is the line following the set_userdata calls. On successful login, the controller does a header redirect to the site landing page. Log traces show that redirect being done.
On loading the default controller, I then - as in any load - check the userID, to see if it's anonymous or not, in the constructor. At this time, it isn't seeing the logged-in userID, resets it as a new anonymous ID and redirects back to my login page.
I've modified the original code so that any time I do a header redirect, I call session_write_close() first to close out the session writes, but so far, I can't get the login working.
The basic code worked fine in CI 1.73. I don't see why setting the session data from within a model function should prevent it from writing.