2017 © Pedro Peláez
 

library synapse

Synapse saves sessions to the database

image

nehalvpatel/synapse

Synapse saves sessions to the database

  • Thursday, March 20, 2014
  • by nehalvpatel
  • Repository
  • 1 Watchers
  • 1 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Synapse Build Status

Synapse saves sessions to the database., (*1)

Requirements

  • PHP 5.4 and up
  • MySQL

Getting Started

  1. Install composer
  2. Add the package to your composer.json
  3. Run composer

Example

  1. Pass a PDO object to the handler class (a table called "sessions" will be auto generated)
  2. Set the save handler to use the class
  3. Start the session
  require 'vendor/autoload.php';

  $Synapse = new \Synapse\Handler(new PDO("mysql:host=" . $db_host . ";dbname=" . $db_name, $db_username, $db_password));
  session_set_save_handler($Synapse, true);
  session_start();

  $_SESSION["user_id"] = "1";

The Versions

20/03 2014

dev-master

9999999-dev https://github.com/nehalvpatel/Synapse

Synapse saves sessions to the database

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

database sessions oop

20/03 2014

1.0.1

1.0.1.0 https://github.com/nehalvpatel/Synapse

Synapse saves sessions to the database

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

database sessions oop

19/03 2014

1.0.0

1.0.0.0 https://github.com/nehalvpatel/Synapse

Synapse saves sessions to the database

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

database sessions oop