PHPnews.io



Validating default PHP session ID values

Written by Rob Allen / Original link on Feb. 13, 2020

I recently needed to validate the value created by PHP for its session ID. After a bit of research, I realised that there are two interesting php.ini config settings that relate to this value:session.sid_length is the number of characters in the IDsession.sid_bits_per_character controls the set of …




Event delegation

Written by Sebastian De Deyne / Original link on Feb. 13, 2020

After learning how to select elements in the DOM, it's time to zoom into events. This is the third post in the JavaScript Framework Diet series.Haven't read the first two posts? Get started with the introduction.Consider the following piece of HTML:<a href="/projects"><svg><!-- List …


Contrarian bikeshedding isn't helpful

Written by Joe Ferguson / Original link on Feb. 12, 2020

Users who reply to threads about $technology with comments such as:OMG! Why are you still using $technology when $new_tech exists!These replies offer nothing of value and should be moderated or down voted into oblivion.Go forth and stop telling people to buy an orange when their pear isn't working …