Skip to content

Releases: SoloPHP/Session

v2.0.0

Choose a tag to compare

@SoloPHP SoloPHP released this 28 Nov 16:18

Fixed

  • Fixed session timeout bug where sessions were never expiring
    • resetSession() now properly returns after reset to prevent zombie sessions
    • checkSessionIntegrity() now properly returns after reset
    • Cookie is now deleted before session destruction in resetSession()

Added

  • getCreatedAt() method to retrieve session creation timestamp
  • created_at timestamp stored when session is first initiated
  • expireOnClose parameter to control cookie behavior on browser close

Changed

  • Simplified configuration - removed redundant timeout and gcMaxlifetime parameters
  • Renamed getTimeout() to getLifetime()
  • lifetime is now the single parameter for idle timeout (in seconds, default: 1800)
  • gc_maxlifetime is now automatically synced with lifetime
  • Updated dependencies: PHPUnit ^12.3, PHPStan ^2.1, PHP_CodeSniffer ^3.13
  • Improved type safety (PHPStan level 8 compliance)
  • sameSite parameter now strictly typed as 'Strict'|'Lax'|'None'

Security

  • Sessions now properly expire after configured timeout period
  • Cookie cleanup guaranteed when session is reset due to timeout or integrity violation

v1.2.0

Choose a tag to compare

@SoloPHP SoloPHP released this 04 Aug 05:14
  • Moved to Solo\Session\ namespace and PSR-4 structure
  • Code optimization and better error handling
  • Added PHPUnit tests and PSR-12 code style validation

v1.1.0

Choose a tag to compare

@SoloPHP SoloPHP released this 14 Dec 07:24

Added

  • Advanced session security configuration
  • Session timeout management (configurable)
  • IP and User-Agent validation
  • Protection against session fixation
  • Configurable cookie security settings (httpOnly, secure, sameSite)
  • Environment-specific settings support
  • Session monitoring and status methods
  • Cookie domain and path configuration

Changed

  • Updated PHP requirement to 8.1+ (from 7.4+)
  • Constructor now accepts optional configuration parameters
  • Added strict type declarations

Backward Compatible Changes

  • Basic methods remain unchanged (get, set, has, unset, clear)
  • Default configuration matches previous behavior
  • No changes required for basic usage

v1.0.1

Choose a tag to compare

@SoloPHP SoloPHP released this 15 Jul 14:11

fix: return type

v1.0.0

Choose a tag to compare

@SoloPHP SoloPHP released this 13 Jul 15:37

Initial Release