Skip to content

Instantly share code, notes, and snippets.

@perusio
Created December 24, 2011 19:32
Show Gist options
  • Save perusio/1518163 to your computer and use it in GitHub Desktop.
Save perusio/1518163 to your computer and use it in GitHub Desktop.
Better cookies using /dev/urandom
; Add this to your php.ini. E.g., to /etc/php5/fpm/php.ini (with PHP-FPM on Debian based systems).
; Increase the entropy of your session token. The default setting is 0 (disabled).
session_entropy_length = 32
; OS based random data generator as source for entropy.
session.entropy_file = /dev/urandom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment