You are here: Re: [PHP] What is the purpose of sessions extension? « PHP « IT news, forums, messages
Re: [PHP] What is the purpose of sessions extension?

Posted by "Richard Lynch" on 11/14/05 22:17

On Fri, November 11, 2005 6:59 pm, Jasper Bryant-Greene wrote:
> GamblerZG wrote:
>> What is the purpose of sessions extension?
>>
>> The reason I ask is because learning to deal with all its functions,
>> ini
>> options and quirks took me _much_ more time than writing pure-php
>> replacement. (That is, without using session_set_save_handler().)
>
> I realise that yours might be a special case, but for most situations
> I
> have only had to do session_start() and then simply used $_SESSION as
> if
> it were any other array with the simple difference that it persists
> across requests. When done with the session, use session_destroy() if
> you feel the need.
>
> I'm not sure how that could be harder than writing a pure-PHP
> replacement for the session extension...

The FIRST time one uses PHP session_start() et al, it tends to be a
lot of wading through and taking the wrong path and...

Once you figure out that you need:
<?php
session_start();
?>
at the top of every page, and to just read/write session data with:
$_SESSION
it gets real easy.

But it ain't easy the first time.

--
Like Music?
http://l-i-e.com/artists.htm

 

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

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