Re: Session's is slowing the page ??
| From: | Dima Dubin | Date: | Tue, 28 May 2002 16:21:15 +0000 |
| Subject: | Re: Session's is slowing the page ?? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-99490@lists.php.net to get a copy of this message | ||
THANK YOU !!!!!!!
"Tom Mikulecky" <tm@caldera.fr> wrote in message
news:3CF399F7.B6EA4C2B@caldera.fr...
> Hat you do is the same as if you do nothing, because your
session_write_close()
> is called near the end of script and sessions are automatically closed at
the
> end of a script. You should 'copy' all needed variables from the session
in
> your header.php like this:
>
> session_start();
> $copy_user = $user; //if $user and $user_email are session data
> $copy_user_email = $user_email;
> session_write_close(); //or session_end() if your php knows it
>
> That way you can access $copy_* in the body instead of session variables.
> It works as readonly access to session data
>
> Tom
>
> Dima Dubin wrote:
>
> > Hi Tom
> > Thanks for your help but the problem still happens :-(
> > First I tried to use session_readonly() but it was unknown FUNC` in my
php,
> > then I try the second way :
> > I have header.php & footer.php in the header I use session_start(); and
in
> > the footer I use session_write_close() and still every minute the site
> > "freezes".
> > Is there any other way ? I really need to use these session's...
> >
> > thanks again for your great help,
> > Dima.
> >
>