eypsilon
eypsilon
Sounds useful, so i've made a Gist. Feel free to modify it in anyway you need. [https://gist.github.com/eypsilon/aa0ef898608ff4c441d7d7af94bc6b7b](https://gist.github.com/eypsilon/aa0ef898608ff4c441d7d7af94bc6b7b) Usage: ```php // the first parameter sets the max lifetime of an session...
> you can probably just rely on an `Auth` instance as well. You could then replace the call to `\session_destroy()` with a call to `Auth#logOut` Since there are many available...
I was curious so I tested it in the library and it just fits perfectly in it. ```php // in: vendor/delight-im/auth/src/Auth.php /** @var String session field for users last action...
> We won’t need the second parameter The loop is actually a relic of the previous versions of the class, where the focus was more on the callback functionality. You...
> **Update2: The example is works after a few minutes** > **Note:** Global logouts take effect in the local session immediately, as expected. In other sessions (e.g. on other devices),...
The remember_me Cookie is not part of the Session. You've to close your browser in order to get remembered. Or at least delete the current Session.
I've changed my Tables to InnoDb after setting the email columns to varchar(191) without any problems. But that leads to another question, have you ever seen a real email adress...
> I am using some editing functions and AJAX to maintain lists of data. I had a similar problem with Auth and AJAX, [session_write_close()](https://www.php.net/manual/en/function.session-write-close.php) fixed it for me. You can...
> I can think of a few reasons to want to extend it, 1, To make the "additional user information" part of an extended class You can use the so-called...
Untested example, but you should get the idea. That's how i use the Lib. ```php use Delight\Auth\Auth; class AuthDecorator { protected static $authInstance; /** * @return void Instantiate Auth-Lib */...