> Thank you ! you are genious ^^
> commom object is session_start ().

> When i remove this ...
> GET test.php  200 OK 5.03s
> GET test2.php 200 OK 5.03s

> BUT ... i need to my session ...

Close  the  session  whenever  you  don't need it. Don't leave it open
during  long-lived  database  or  mail fetches, but rather buffer into
local vars and then do your session updates in one quick hit.

The  overhead  of opening and closing the file (assuming you are using
default  file storage) a few times in a PHP process should be minimal.
If  you were truly reading and writing to the session 100s of times in
a  single  page  view, then it's true that the file I/O would take its
toll, but there is always a way to rethink these things.

-- S.

Reply via email to