Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2005051

Re: [PHP] Finding current PHP sessions From: Marek Kilimajer (lists <email protected>)
Date: 05/14/05

Bogdan Stancescu wrote:
> Ok, I went with the solution you recommended, by the way of a "thank
> you" to the list, here's the resulting function:
>
> /**
> * This function returns the IDs of the current PHP sessions.
> * At this time, it only works with
> * { <email protected> http://www.php.net/manual/en/ref.session.php#AEN129461}
> * PHP session.save_handler='files'
> *
> *  <email protected> Bogdan Stancescu
> *  <email protected> http://opensource.org/licenses/lgpl-license.php GNU Lesser
> General Public License
> *
> *  <email protected> mixed false on error or the indexed array of the session IDs;
> * please note that the session IDs are 16-bit values represented as

16-bit. That's not very secure ;) Should be 256-bit

> * 32-character long hexadecimal strings; letters are in lower caps.
> */

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php