You are here: Re: stange behavior of $_SESSION « PHP Language « IT news, forums, messages
Re: stange behavior of $_SESSION

Posted by Peter Pei on 01/07/08 10:55

To make the question more clear. Try this piece of code:
<?php
session_start();
$_SESSION[] = rand();
?>
<html>
<body>

<?php
print_r($_SESSION);
?>
</body>
</html>

Refresh the page couple of time, you will see that the index is not
increasing. I believe this is more a design choice in session_start, or a
plain bug. If it is a design choice, I would like to know the reason if
anyone knows.

Please don't reply if you don't know the answer.

 

Navigation:

[Reply to this 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

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