You are here: Re: Losing session variables « PHP Programming Language « IT news, forums, messages
Re: Losing session variables

Posted by Tom on 06/14/06 17:21

Are you session-write-closing before redirect? This may help:

http://www.php.net/manual/en/function.session-write-close.php

Tom

Geoff Berrow wrote:
> I have a page containing a form. The page submits to itself and if the
> data validates, stores the posted variables into a database and also
> into a session. I then use header to redirect to another page which
> fetches the variables from the session array and displays them.
>
> All works fine on the Linux test server. However the production server
> is Windoze running PHP 5. reg globals off I am intermittently losing
> variables. from the session array
>
> It's not a register globals issue - sometimes they are there sometimes
> not. The only other difference I can see is the session.gc.divisor
> which is set to 1000
>
> Anyone come across anything like this?
> --
> Regards,
>
> Geoff Berrow

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация