Reply to Re: [PHP] Finding current PHP sessions

Your name:

Reply:


Posted by Bogdan Stancescu on 05/15/05 04:19

Marek Kilimajer wrote:
> 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
>> * {@link http://www.php.net/manual/en/ref.session.php#AEN129461}
>> * PHP session.save_handler='files'
>> *
>> * @author Bogdan Stancescu
>> * @license http://opensource.org/licenses/lgpl-license.php GNU Lesser
>> General Public License
>> *
>> * @return 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.
>> */

True, that should've read "16 byte", documentation error -- thanks for
pointing it out!

Cheers,
Bogdan

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация