Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Multiple driver sessions
  • I have similar problem to this question - http://fuelphp.com/forums/discussion/12653/odd-problem-with-auth-multiple-drivers-and-sessions

    1. Created custom driver by copying Simpleauth and rewriting hardcoded config parts.
    2. Tested custom driver using only one driver
    3. Added Simpleauth driver and set multiple logins to false

    Now user can login using custom driver, but after redirect session is erased by  Simpleauth driver, although I only use Auth::instance("Customauth") instance.

    Cookies have diff. names, what else am I missing?
    Someone can guide me or show example of custom/modified Simpleauth driver?
  • HarroHarro
    Accepted Answer
    There is (normally) only one session, so if both drivers use 'username' etc as session variable, one will overwrite the next.

    We use "drivername.username" in our drivers to avoid this collision.
  • Hands down, you are the best!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion