« first day (4019 days earlier)      last day (913 days later) » 

2:30 AM
Static analyser would have caught it
 
 
6 hours later…
8:32 AM
mornings.
curious, that after throw can be used in expressions since 8.0, if it may be also somehow possible to make the same go for the goto statement...
 
9:28 AM
@hakre why would you want goto as an expression, out of curiosity?
 
10:04 AM
@Sherif to inline the (non-)happy path for example: $foo && goto done;
 
E_GOTO_PRESENT_YOU_MADMAN. But in seriousness, as it was done with throw I don't see why not.
I do wonder what would happen if it was somewhere deeper though e.g. $x = ($foo && goto 123);
 
cmb
10:42 AM
if ($foo) goto done;
 
11:05 AM
if you put ifs into the example, that would be more like: if ($bar) {^M ... ` if ($foo) {^M goto done;^M }^M` ... ` done:^M}^M` so the inline/unrolling wouldn't be there.
but true, similar with throw before 8.0. (meh code escapes don't work with spaces...)
 
 
2 hours later…
12:53 PM
@beberlei You might have some interest in or useful input for github.com/revoltphp/event-loop/issues/5
 
 
1 hour later…
2:03 PM
In less than a week I've converted my nephew to drinking yorkshire gold (that is, in general terms, a non-tea-drinker into a tea drinker)
 
 
2 hours later…
3:51 PM
@Tiffany Before you added "tea" to the sentence I was thinking you got a 12 yo hooked on bourbon or somesuch
 
4:03 PM
They don't make whisky (worth speaking of) in Yorkshire
 
Who needs whisky when you've got yorkshire tea though? I mean, really.
 
4:31 PM
@FĂ©lixAdriyelGagnon-Grenier :P though he's 18, so not too far from drinking age (in the US, that is)
 
5:05 PM
Hello guys
I have a question:
I read, that when I write session_start() in PHP all the session variables I'm going to set, will expire after 24 mins. How sites, like Facebook, where users spend hours just scolling manage to keep users logged in?
 
That's just a default, you can change it using session.gc_maxlifetime, facebook also uses persistent cookies to store a login token between browser reloads
 
I already changed it to 1h. But I have a gallery, where photographer sends images to users. But users sometimes spends more than 1h picking the images.
 
So make it longer.
 
Is it safe to change this value to like 3h?
 
Unless you're dealing with things requiring high levels of security, you can set it to as long as you want, although if you get a lot of traffic you might slow things down with the amount of sessions, waiting for them to expire
 
5:22 PM
I don't generate a lot off traffic, so I'll set it higher.
 
normally each page refresh resets the time limit......but yeah, unless you're making a site that handles people's money, it's fine to keep them logged in for ages. I think gmail is something like a month.
 
Thank you for making it clear :)
 
 
6 hours later…
10:56 PM
@Danack *money or personal data that could be indirectly used to access money
personally I currently recommend challenging for a 2FA token every 7 days by default, but make sure it's easy to use otherwise people won't use it
for enterprisey things, every day
 

« first day (4019 days earlier)      last day (913 days later) »