Re: Session with microtime
| From: | Robert Cummings | Date: | Fri, 20 Apr 2007 17:19:00 +0000 |
| Subject: | Re: Session with microtime | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-253357@lists.php.net to get a copy of this message | ||
On Fri, 2007-04-20 at 11:56 -0500, Matthew Powell wrote:
> Panquekas wrote:
> > On 20/04/07, Panquekas <panquekas@gmail.com> wrote:
>
> <snip>
>
> > I'm sorry, my mistake. What I tried to say is that the session_start() was
> > on the top of the page, and the if( ) block was after that and the login
> > script was even after the if( ), so the first thing to ran was the
> > session_start() then the if( ) block and after that the login script
> > registering the $_SESSION's. I moved the login script to the middle of the
> > session_start() and the if( ).
>
> <snip>
>
> Am I the only one that uses 'session.auto_start = 1'?
>
> It saves me from worrying about that type of problem.
Makes your code less portable since now it requires an out of code
configuration setting *shrug*. Also makes your code less accessible to
the uninitiated masses who don't know what php.ini and .htaccess files
are.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'