Re: IIS and php sessions

From: Date: Mon, 15 Nov 2004 21:57:49 +0000
Subject: Re: IIS and php sessions
Groups: php.db 
Request: Send a blank email to php-db+get-37284@lists.php.net to get a copy of this message
save path variable for sessions by default is /tmp which is a linux default try changing it to /temp bastien
From: John Holmes <holmes072000@charter.net> Reply-To: holmes072000@charter.net To: "Adil" <aasheer@draftnet.com>, <php-db@lists.php.net> Subject: Re: [PHP-DB] IIS and php sessions Date: Mon, 15 Nov 2004 16:01:47 -0500 From: "Adil" <aasheer@draftnet.com> I'm trying to get sessions in php working on IIS and I've noticed that that needs to be configured manually for IIS. But what exactly does that mean? I can't find a good step by step source about this issue so any help would be greatly appreciated. 1. Ensure session.save_path is valid in php.ini (ensure the directory exists and that's where you want to save session files) 2. Ensure the IUSR_<computer_name> user has access to read and write to the directory in session.save_path. PHP runs as the IIS user when installed as a module, which is the IUSR_<computer_name> user by default 3. Sessions should work. Run a simple test to find out. <?php session_start(); $_SESSION['count']++; echo "You've been here {$_SESSION['count']} times."; ?> Any issues, let me know. ---John Holmes... UCCASS - PHP Survey System http://www.bigredspark.com/survey.html Hey everyone, I'm trying to migrate this php app with a mySQL database to IIS/Microsoft SQL Server. I know that I should be using a database abstraction layer but haven't had the time to do that just yet. In anycase, the question has little to do with that. I'm trying to get sessions in php working on IIS and I've noticed that that needs to be configured manually for IIS. But what exactly does that mean? I can't find a good step by step source about this issue so any help would be greatly appreciated. thx Adil. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.db (#37284) next »