Giter VIP home page Giter VIP logo

Comments (7)

eypsilon avatar eypsilon commented on June 9, 2024

I don't know if it will fix the problem, but session_start(); must be called before anything else, before require_once. Is error_reporting on?

from php-auth.

sadalsuud avatar sadalsuud commented on June 9, 2024

No nothing, It so same. Do you have a example, how do you pass data from script to another script? I think I am doing something wrong

from php-auth.

eypsilon avatar eypsilon commented on June 9, 2024

Do you have a example

Well, it should work, like you are doing it. Try, if your SESSION works at all, save a string in $_SESSION['test'] = 'Test var';, redirect and check the SESSION. The target after the redirect needs also a session_start().

from php-auth.

sadalsuud avatar sadalsuud commented on June 9, 2024

What you say I did that already. The sesión works if I do not use login() or loginWithUsername() methods then, how I do go to use the library ??

from php-auth.

eypsilon avatar eypsilon commented on June 9, 2024

Sorry, you don't need to do the SESSION-handling, it's done internally by the lib. And the target-page (or URL) you redirect to needs to require the library, too.

from php-auth.

sadalsuud avatar sadalsuud commented on June 9, 2024

Then on the Target-page I do
require_once '../vendor/autoload.php';
But how I do access the $auth object on the Target-page ?
I try it and Tell you

from php-auth.

eypsilon avatar eypsilon commented on June 9, 2024

Chack the SESSION on the target Page, it should be filled after the require

require_once '../vendor/autoload.php';

var_dump($_SESSION);

from php-auth.

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.