note 118968 deleted from function.curl-setopt by crell

From: Date: Thu, 31 Mar 2022 20:55:18 +0000
Subject: note 118968 deleted from function.curl-setopt by crell
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-217975@lists.php.net to get a copy of this message
Note Submitter: joey ---- Sorry, I made a mistake. For validating cookie entries it is best to use at least: /^([^\t]+\t){6}[^\t]+$/ There was not enough space for me to put in the rationale for not using persistent storage with cookies but it should be obvious. It's YAGNI for most scenarios. In this case at best it complicate things, at the worst you perform an operation using the wrong cookie session. It can also increase the chance of failure, waste resources, reduce performance and create mess in the file system. The plus of persistent is that In some cases it may be used to accelerate across processes but not many people actually need that and when they do there tend to be better options such as using memcached. If someone can edit and merge the comments it would be appreciated.

« previous php.notes (#217975) next »