You are here: Re: Sessions... « PHP Language « IT news, forums, messages
Re: Sessions...

Posted by Oli Filth on 05/10/05 00:58

Sa wrote:
> Hi, all
>
> i must say that i'm new in using sessions and i though i understood the
> meaning work of them..
> but i have such script that don't do properly what i want.
>
> Its really a simple store of a variable counter...
>
> i firstly use:
<SNIP CODE>

Don't bother using session_register(), session_is_registered(), etc. Use
$_SESSION, as recommended by the manual (assuming you have PHP 4.0.6+)

e.g.

<?php

session_start();
if (!isset($_SESSION["key"]))
{
...
$_SESSION["key"] = $var;
}

?>



--
Oli

 

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

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