Re: [PHP] Issues in passing session data
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. Correct me if I'm wrong, but I don't think a new session file is created. session_start() creates a session or resumes the current one based on the current session id that's being passed via a request, such as GET, POST, or a cookie. J. __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Issues in passing session data
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php