|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-04-25 21:16 UTC] mrieger at NOSPAM dot nanometrics dot com
Hi! I created my own session handlers (using a database) and used the CGI binary version of PHP. Once I started a session, the session variables got lost through the pages, although the session variables were inserted correctly into the database. After playing around with it all day, I re-installed PHP 4.1.2 ? and again it wouldn?t work. I then installed Apache 2.0 (without making any changes to PHP), and ? it?s working!!!! * There definitely is a bug with sessions in collaboration with IIS. * I tried to call the vars with $_SESSION, and set register_globals on. No matter how I set the session.referer_check (according to a posting in #8989), it will not run with IIS5. The funniest thing is, the scripts were actually developed on PHP 4.1.2 running on RedHat 7.2 with Apache and then moved onto the windows server running IIS5, where they didn?t run anymore. The relevant settings in php.ini were the same on windows and on RedHat, and the scripts don't use any platform-specific features. Cheers, Marwin PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 12:00:01 2025 UTC |
In version 4.1.2 this code works, in 4.2.0 not! So I got back to 4.1.2 because I didn't manage to make it work. <?php session_start(); if ( !isset($count)) { $count = 0; session_register("count"); echo "Counter initialized, reload and the counter will be incremented"; } else { $count++; session_register("count"); } echo "The counter is now $count "; ?>