Re: Session variables are lost, disappear from page to page



In article <217075d1-4263-4f99-85ea-2744b632451c@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Saint <ianwalter@xxxxxxxxx> wrote:
My Server Enivronment:

MS Windows Server 2003
Standard Edition, Service Pack 1
(running as a VM on a Intel Xeon server)

IIS running on Port 80
Apache 2.0.63 running on port 8080
PHP 5.2.5

[snip]

I tried this script on my shared hosting (running Linux) and the
script worked fine.

OK. Nothing wrong with your code or PHP, then.

But the strangest thing about this, is that the session variables
aren't lost when I try to edit the records, only when I try to delete
records. In fact, another strange thing about this is that this script
worked fine for a while at first, then all of a sudden it stopped
working, like I had changed the code, but I hadn't.

I think it's a PHP bug, but PHP support won't acknowledge it as a bug,
and I can't change the server environment.

Sounds to me like a server bug more than a PHP bug, especially since
it works fine under Linux.

I don't know if it will work, but it helped me to do the following at
the start of my code:

session_save_path($my_session_path);
session_name('login_settings'); // or any other name you want
session_start();
if (session_id() == 'deleted') session_regenerate_id(true);

Mr. Stuckle may come along and argue that the above isn't necessary,
but that isn't true for everyone's case.

-A
.



Relevant Pages

  • Re: reading http request raw data as stream
    ... passed to PHP only after the entire request had reached the server. ... A possibility would be to set up a PHP-based server, ... I wouldn't wanna go with any other port rather than 80 in order not ... It just seems logical to me that PHP would support such a flow (like ...
    (comp.lang.php)
  • Broken image on Internet, no broken image on intranet
    ... I'm running Windows Server 2003 Standard with IIS 6.0 and php installed. ... with no broken images. ... The only port of the server accessible to the web is ...
    (microsoft.public.inetserver.iis)
  • Compromised FBSD/Apache
    ... 2002 I noticed a service running on port 127/tcp. ... PHP was installed 5 days prior to this. ... Server version: Apache/1.3.28-dev ...
    (Incidents)
  • Re: PHP Email
    ... does relay emails to our mail server. ... It points to a mail server which usually opens port ... Apache server which in turn opens port 80, ... PHP runs underneath Apache, but ...
    (comp.lang.php)
  • Re: PHP Instalation problems. Browser doesnt know what to do
    ... This is loaded and run as a local server (for class ... PHP 5.2.0 from php-5.2.0-win32-installer.msi ... # configuration directives that give the server its instructions. ...
    (comp.lang.php)