Coder Social home page Coder Social logo

Use redis for session about magento-lts HOT 5 CLOSED

kiatng avatar kiatng commented on June 1, 2024
Use redis for session

from magento-lts.

Comments (5)

colinmollenhour avatar colinmollenhour commented on June 1, 2024 1

If installed as a Magento module (it has "type":"magento-module", in composer.json) then it should be loading - technically if we used new instead of getSingleton then it would not be necessary for it to be a Magento module at all and just an "autoload" section in the compose.json would be sufficient to let it autoload. Does your compose environment have a magento module loader?

from magento-lts.

kiatng avatar kiatng commented on June 1, 2024

The file 'cm_redissession/session' is here: vendor\colinmollenhour\magento-redis-session\app\code\community\Cm\RedisSession\Model\Session.php. But I have no idea how to proceed.

$sessionResource = new Cm_RedisSession_Model_Session;

Fatal error: Uncaught Error: Class "Cm_RedisSession_Model_Session" not found

from magento-lts.

m-overlund avatar m-overlund commented on June 1, 2024

i use
<session_save>db</session_save> for redis.
But i have also previously tried to use the other session_save without succes

from magento-lts.

ADDISON74 avatar ADDISON74 commented on June 1, 2024

Maybe @colinmollenhour could help you.

from magento-lts.

kiatng avatar kiatng commented on June 1, 2024

I'm not sure where to look if my composer environment has the magento module loader. I have this in the file vendor\composer\installed.json:

          {
            "name": "magento-hackathon/magento-composer-installer",
            "version": "4.0.2",
            "version_normalized": "4.0.2.0",
            "source": {
                "type": "git",
                "url": "https://github.com/Cotya/magento-composer-installer.git",
                "reference": "ece5cc5bb2a0150a743619901543036597f9eb5b"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/Cotya/magento-composer-installer/zipball/ece5cc5bb2a0150a743619901543036597f9eb5b",
                "reference": "ece5cc5bb2a0150a743619901543036597f9eb5b",
                "shasum": ""
            },
            "require": {
                "composer-plugin-api": "^2.0",
                "flyingmana/composer-config-reader": "*",
                "php": ">=5.5",
                "symfony/console": "^2.5|^3.0|^4.0|^5.0"
            },
            "require-dev": {
                "composer/composer": "2.*",
                "cotya/composer-test-framework": "~2.0",
                "ext-json": "*",
                "mikey179/vfsstream": "~1.4",
                "phpunit/phpunit": "~4.3",
                "phpunit/phpunit-mock-objects": "~2.3",
                "squizlabs/php_codesniffer": "~2.1",
                "symfony/process": "~2.5"
            },
            "suggest": {
                "colinmollenhour/modman": "*",
                "theseer/autoload": "~1.14"
            },
            "time": "2022-04-20T19:23:22+00:00",
            "bin": [
                "bin/magento-composer-installer.php"
            ],
            "type": "composer-plugin",
            "extra": {
                "class": "MagentoHackathon\\Composer\\Magento\\Plugin"
            },
            "installation-source": "dist",
            "autoload": {
                "psr-0": {
                    "MagentoHackathon\\Composer": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "OSL-3.0"
            ],
            "authors": [
                {
                    "name": "Daniel Fahlke aka Flyingmana",
                    "email": "[email protected]"
                },
                {
                    "name": "Jörg Weller",
                    "email": "[email protected]"
                },
                {
                    "name": "Karl Spies",
                    "email": "[email protected]"
                },
                {
                    "name": "Tobias Vogt",
                    "email": "[email protected]"
                },
                {
                    "name": "David Fuhr",
                    "email": "[email protected]"
                },
                {
                    "name": "Vinai Kopp",
                    "email": "[email protected]"
                }
            ],
            "description": "Composer installer for Magento modules",
            "homepage": "https://github.com/magento-hackathon/magento-composer-installer",
            "keywords": [
                "composer-installer",
                "magento",
                "openmage"
            ],
            "support": {
                "issues": "https://github.com/Cotya/magento-composer-installer/issues",
                "source": "https://github.com/Cotya/magento-composer-installer/tree/4.0.2"
            },
            "funding": [
                {
                    "url": "https://github.com/sponsors/Flyingmana",
                    "type": "github"
                },
                {
                    "url": "https://www.patreon.com/Flyingmana",
                    "type": "patreon"
                }
            ],
            "install-path": "../magento-hackathon/magento-composer-installer"
        },

Is this it? I'd appreciate any help as I am quite clueless.

from magento-lts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.