Re: PHP on IIS session problems
| From: | 1LT John W. Holmes | Date: | Mon, 03 Mar 2003 16:23:25 +0000 |
| Subject: | Re: PHP on IIS session problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137907@lists.php.net to get a copy of this message | ||
> I get these errors from a simple "session_start();" script.
>
> Warning: session_start() [function.session-start]:
> open(/tmp\sess_f4aa3ef3c537bb6327d5e7b991e91be7, O_RDWR) failed: No such
> file or directory (2) in c:\inetpub\wwwroot\picoblog\admin.php on line 2
Do you have a /tmp folder on your computer? Probably not, so that's why PHP
is throwing a warning, because it can't write to a directory that doesn't
exist.
> Warning: session_start() [function.session-start]: Cannot send session
> cookie - headers already sent by (output started at
> c:\inetpub\wwwroot\picoblog\admin.php:2) in
> c:\inetpub\wwwroot\picoblog\admin.php on line 2
>
> Warning: session_start() [function.session-start]: Cannot send session
cache
> limiter - headers already sent (output started at
> c:\inetpub\wwwroot\picoblog\admin.php:2) in
> c:\inetpub\wwwroot\picoblog\admin.php on line 2
These are just by-products of the first error.
Set your session.save_path setting in php.ini to a folder that IIS can write
to.
---John Holmes...