2017 © Pedro Peláez
 

library kodi-session

KodiApp Session

image

kodi-app/kodi-session

KodiApp Session

  • Monday, October 2, 2017
  • by kodi-app
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

SessionProvider

This repository contains different Session implementation for KodiApp., (*1)

Installation

$ composer require kodi-app/kodi-session

Configure SessionHook

PandabaseSessionHook

PandabaseSessionHook implementation is based on Symfony's PdoSessionHandler., (*2)

$application->run([
    // ...
    KodiConf::HOOKS => [
        // ...
        [
            "class_name" => PandabaseSessionHook::class,
            "parameters" => [
                // Optional, you have to set it when you have more Connection instance in ConnectionManager
                "connection_name"  => "default",

                // Optional, 'options' parameter is same as PdoSessionHandler's 'options' parameter
                "options" => [
                    // ...
                ]
            ]
        ],
        // ...
    ],
    // ...
]);

You find details about PdoSessionHandler here., (*3)

You find details about Pandabase here., (*4)

Configure SessionProvider

$application->run([
    KodiConf::SERVICES => [
        SessionProvider::class
    ]
]);

How to use SessionProvider

/** @var Session $session */
$session = Application::get("session")

// Get username value from session (same as $_SESSION["username"]). If it doesnt exist returns with "anon".
$username = $session->get("username","anon")

// Set a new username
$new_username = "john_doe";
$session->set("username",$new_username);

The Versions

02/10 2017

dev-master

9999999-dev https://github.com/kodi-app/kodi-session

KodiApp Session

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Attila Nagy

framework php session kodiapp

02/10 2017

v0.9.1

0.9.1.0 https://github.com/kodi-app/kodi-session

KodiApp Session

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Attila Nagy

framework php session kodiapp

16/09 2017

v0.9.0

0.9.0.0 https://github.com/kodi-app/kodi-session

KodiApp Session

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Attila Nagy

framework php session kodiapp