Giter Site home page Giter Site logo

How to enable php session about php HOT 5 OPEN

areaboy avatar areaboy commented on May 28, 2024
How to enable php session

from php.

Comments (5)

f3l1x avatar f3l1x commented on May 28, 2024

Hi @areaboy. It's a feature, when you request your different lambdas they have different user space. You can imagine them like different docker containers. You need to use some shared space, for example redis, if you need multiple lambdas. Or you can use one lambda (one index.php) and require different session.php file according routes.

from php.

areaboy avatar areaboy commented on May 28, 2024

Thanks for getting back to me. Please do you have a php sample code and vercel.json sample configuration. Am New to Vercel. Thanks

from php.

denusklo avatar denusklo commented on May 28, 2024

I have encouter this issue before but I end up using databse as session driver. just need to provide your db credential and SESSION_DRIVER=database is fine

from php.

Transyfor avatar Transyfor commented on May 28, 2024

How would I go about doing that? I'm very new to php and Vercel so I don't fully understand where to write that. Thank you

from php.

denusklo avatar denusklo commented on May 28, 2024

@Transyfor the place for me to put db credential and SESSION_DRIVER=database is file .env at the root directory

from php.

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.