Re: IIS and php sessions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



save path variable for sessions by default is

/tmp which is a linux default

try changing it to

/temp


bastien

From: John Holmes <holmes072000@xxxxxxxxxxx>
Reply-To: holmes072000@xxxxxxxxxxx
To: "Adil" <aasheer@xxxxxxxxxxxx>, <php-db@xxxxxxxxxxxxx>
Subject: Re:  IIS and php sessions
Date: Mon, 15 Nov 2004 16:01:47 -0500

> From: "Adil" <aasheer@xxxxxxxxxxxx>

> 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

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux