Re: [PHP-DB] IIS and php sessions
save path variable for sessions by default is /tmp which is a linux default try changing it to /temp bastien From: John Holmes <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: "Adil" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Subject: Re: [PHP-DB] IIS and php sessions Date: Mon, 15 Nov 2004 16:01:47 -0500 > From: "Adil" <[EMAIL PROTECTED]> > 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_ 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_ user by default 3. Sessions should work. Run a simple test to find out. 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 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] IIS and php sessions
Hi Adil, You need to configure session.save_path in php.ini. This setting needs to point to a directory where the IIS user can write files. If you are running the ISAPI version of php you also need to restart the web service for the changes to take place. - Frank > 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
Re: [PHP-DB] IIS and php sessions
I'm pretty sure this is enabled by default in PHP for Windows, I think you'll need to check the IUSR_[machine_name] persmissions on the sessions folder. I'm headed in the other direction. I'm re-writing an app with a database abstraction layer with hopes of moving to postgres. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] IIS and php sessions
> From: "Adil" <[EMAIL PROTECTED]> > 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_ 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_ user by default 3. Sessions should work. Run a simple test to find out. Any issues, let me know. ---John Holmes... UCCASS - PHP Survey System http://www.bigredspark.com/survey.html replyAll Description: null -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php