Re: PHP on IIS session problems
| From: | 1LT John W. Holmes | Date: | Mon, 03 Mar 2003 17:06:47 +0000 |
| Subject: | Re: PHP on IIS session problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137920@lists.php.net to get a copy of this message | ||
You need to restart IIS.
c:\> net stop iisadmin
c:\> net start w3svc
or use the control panel.
---John Holmes...
----- Original Message -----
From: "Victor Stan" <victor@argilent.com>
To: "1LT John W. Holmes" <holmes072000@charter.net>;
<php-general@lists.php.net>
Sent: Monday, March 03, 2003 12:54 PM
Subject: RE: [PHP] PHP on IIS session problems
> Ok, thanks guys for your help, I sort of figured that's the problem, but I
> didn't want to touch the ini settings without being sure, and getting some
> advice from people that know. Thanks again, great help.
>
> I made the changes, now how do I restart php? So the changes are used?
>
> - Vic
>
> -----Original Message-----
> From: 1LT John W. Holmes [mailto:holmes072000@charter.net]
> Sent: Monday, March 03, 2003 10:23 AM
> To: Victor Stan; php-general@lists.php.net
> Subject: Re: [PHP] PHP on IIS session problems
>
> > 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...
>