Skip to content

Commit

Permalink
Merge pull request #4 from steffex/master
Browse files Browse the repository at this point in the history
Added register_shutdown_function in example
  • Loading branch information
sprain committed Mar 9, 2014
2 parents f91ff4e + 1f2419d commit 44041a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions example.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@
array($session, 'write'),
array($session, 'destroy'),
array($session, 'gc'));

// The following prevents unexpected effects when using objects as save handlers.
register_shutdown_function('session_write_close');

session_start();

0 comments on commit 44041a3

Please sign in to comment.