php-session
php-session copied to clipboard
Flash and segmentation features added
trafficstars
- Moved exception methods into the new trait \Josantonius\Session\ExceptionThrowingMethodsTrait
- Added a new Exception (\Josantonius\Session\Exceptions\EmptySegmentNameException) used in the new Session Segment class (\Josantonius\Session\FlashableSessionSegment)
- Added a new Session Segment Class (\Josantonius\Session\FlashableSessionSegment) that stores data in a sub-array inside $_SESSION & provides data flashing functionality
- Added a new Interface (\Josantonius\Session\SessionInterface)
- Josantonius\Session\Session changes:
- Now implements \Josantonius\Session\SessionInterface
- start method now sets the session name before starting the session if the name option is specified
- Exception throwing method have been moved to \Josantonius\Session\ExceptionThrowingMethodsTrait
- Uses \Josantonius\Session\ExceptionThrowingMethodsTrait to make exception throwing methods available
- Added tests to test all features in \Josantonius\Session\FlashableSessionSegment
- Updated README.md with instructions on how to use \Josantonius\Session\FlashableSessionSegment