!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

74 Members
A room for PHP developers running on Nix21 Servers

Load older messages


SenderMessageTime
17 Mar 2024
@hexa:lossy.networkhexa also, I used to set session.gc_maxlifetime to a week or so for engelsystem 13:03:29
@hexa:lossy.networkhexathe default seems to be 24 minutes (1440s)13:03:37
@hexa:lossy.networkhexawhat is up with that?13:03:39
@hexa:lossy.networkhexathe effect was that people needed to login again on nearly every visit to the engelsystem13:04:16
@hexa:lossy.networkhexathey got so annoyed that they complained about it 🙂 13:04:23
@hexa:lossy.networkhexa(I'm fairly certain I could also be holding it wrong)13:05:25
@tgerbet:matrix.orgtgerbet

It's the PHP default value https://www.php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime

It can be annoying if the app maintains authentication via the PHP session mechanism (also session.cookie_lifetime)

13:26:04
@hexa:lossy.networkhexaso I'd better go with shorter sessions, but longer cookies?13:38:40
@patka_123:matrix.org@patka_123:matrix.orgYes13:51:43
@tgerbet:matrix.orgtgerbetLooking at the app implementation they are relying on the Symfony Session component https://symfony.com/doc/current/session.html#configuring-the-session-ttl Looking at https://github.com/engelsystem/engelsystem/blob/1217de096a61cd4e0863f587a01a38d141202f21/src/Http/SessionServiceProvider.php#L55-L68 and https://github.com/engelsystem/engelsystem/blob/1217de096a61cd4e0863f587a01a38d141202f21/config/config.default.php#L423-L429 the cookie lifetime seems to be adjusted but not the ttl attribute used by Symfony13:55:51
@tgerbet:matrix.orgtgerbet So it likely fallback to the session.gc_maxlifetime setting instead of the $sessionConfig['lifetime'] defined by the ap 13:56:51
@tgerbet:matrix.orgtgerbet * So it likely fallback to the session.gc_maxlifetime setting instead of the $sessionConfig['lifetime'] defined by the app 13:56:54
@hexa:lossy.networkhexathanks for looking that up!15:54:55
19 Mar 2024
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.00:30:24
@admin:nixos.org@admin:nixos.org joined the room.15:54:31
@admin:nixos.org@admin:nixos.org set the room name to "Nix PHP".15:54:44
@admin:nixos.org@admin:nixos.org left the room.15:54:50
21 Mar 2024
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.18:03:17
@grahamc:nixos.org@grahamc:nixos.org left the room.20:10:09
22 Mar 2024
@piotrkwiecinski:matrix.orgpiotrkwiecinski joined the room.16:32:29
29 Mar 2024
@sebtm:lodere.esSebTM joined the room.04:24:22
14 Apr 2024
@drupol:matrix.orgPolI'm looking for someone on Darwin19:16:13
@drupol:matrix.orgPol It looks like building php81 is currently broken (https://hydra.nixos.org/build/256263019/nixlog/2) 19:16:48
@drupol:matrix.orgPolI made a PR that should fix the issue, I'm looking for someone to test it: https://github.com/NixOS/nixpkgs/pull/30409619:17:07
15 Apr 2024
@drupol:matrix.orgPol ma27: You merged it ! :S 06:30:18
@drupol:matrix.orgPolI was awaiting for someone to test it06:30:36
@ma27:nicht-so.sexyma27

it builds fine on aarch64-darwin though:

ma27@darwin01> /nix/store/p466i2srindcxidarr1p7y477qrixc06-php-with-extensions-8.1.28/bin/php -v                            
PHP 8.1.28 (cli) (built: Apr 10 2024 05:53:50) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.28, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.28, Copyright (c), by Zend Technologies
ma27@darwin01> uname -a                                                                                                     
Darwin darwin01 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:41 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T8103 arm64
06:33:51
@drupol:matrix.orgPolOK thanks! I'll keep an eye on Hydra then06:40:20
@ma27:nicht-so.sexyma27

That being said, in case you didn't know: there's a community aarch64-darwin builder that I tend to use for that as well: https://nix-community.org/community-builder/

I think as the most active php maintainer you could easily get access there as well (only if you want to, of course).

06:54:17
@drupol:matrix.orgPolInteresting ! Thanks :)07:02:31

Show newer messages


Back to Room ListRoom Version: 6