note 50765 deleted from function.session-start by bjori

From: Date: Sun, 16 Apr 2006 00:23:34 +0000
Subject: note 50765 deleted from function.session-start by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-108213@lists.php.net to get a copy of this message
Note Submitter: kiur / at / wannabe / dot / ee ---- This is useful if you dont like 32digit session_id's. This will create longer session_id and it will be passed well. index.php: <?php $rand1=rand(100000,900000); $rand2=rand(100000,900000); $session_id=$rand1.md5($REMOTE_ADDR)."S3cur3d".$rand2; session_id($session_id); session_start(); echo " Better PHPSESSID created! <meta http-equiv=refresh content='0;url=index2.php'> "; ?> index2.php: <?php session_start(); /*Everything works nice!*/ ?>

« previous php.notes (#108213) next »