Re: [PHP-DEV] Issues in passing session data

[email protected] (Derick Rethans)
Newsgroups php.dev
Message-ID <[email protected]>
Hello,

please forward user questions to the [email protected]
mailinglist, this list is for development _OF_ PHP, not development
_with_ PHP.

Derick

On Wed, 5 Mar 2003, Hantzley wrote:

> Hi php users,
>     I have some questions regarding the way developers uses php sessions.
> For instance, most developers uses session_start() on top of every page. The
> problem is that after visiting each page, a new session file is created on
> the server. Now i made a web application that uses the start_session
> function on top of every page as follows:
> 
> <?
>       if ($PHPSESSID){
>                session_start($PHPSESSID);
>                if (session_is_registered('valid_user')){
> ?>
> 
> and it works. But now only one session file is created on the server.
> 
> Is this the best way of passing session data??
> 
> Hantzley
> 
> 
> 
> 

-- 
                                                Stop mad cowboy disease!
-------------------------------------------------------------------------
 Derick Rethans                                 http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals       http://php-mag.net/
-------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.