NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP Sessions on windows

Tom tom at supertom.com
Sun Jul 31 18:21:56 EDT 2005


Hi Dan,

Thanks for the response.  I changed my save_path back to c:/temp, and
compared my permissions to yours (thanks for the command, BTW, didn't know
that existed), and still no luck.

As I mentioned earlier, it's weird because the file is getting written -
every time I press reload, I see the file.  The web server running right now
as the Administrator account, I guess it just can't read the file?  There
are no errors in the Apache error log.

Any other ideas?

Thanks,

Tom

http://www.liphp.org
 

-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of Daniel Convissor
Sent: Sunday, July 31, 2005 5:29 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] PHP Sessions on windows

On Sun, Jul 31, 2005 at 04:04:25PM -0400, Tom wrote:
> (*)session.save_path		C:/Documents and
> Settings/Administrator/Local Settings/Temp/php C:/Documents and 
> Settings/Administrator/Local Settings/Temp/php

session.save_path = "c:/temp"

Of course, that directory needs to be writable by the web server, but you
don't want other users being able to read or tinker around with the files.  
Here are the perms on mine:

C:\PROGRA~1>cacls c:\temp

c:\temp BUILTIN\Administrators:(OI)(CI)F
        machinename\Apache:(CI)(special access:)
                              SYNCHRONIZE
                              FILE_WRITE_DATA
                              FILE_APPEND_DATA

        NT AUTHORITY\Authenticated Users:(CI)(special access:)
                                             SYNCHRONIZE
                                             FILE_WRITE_DATA
                                             FILE_APPEND_DATA
                                             FILE_EXECUTE

        CREATOR OWNER:(OI)(CI)(IO)F
        NT AUTHORITY\SYSTEM:(OI)(CI)F

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409
_______________________________________________
New York PHP Talk Mailing List
AMP Technology
Supporting Apache, MySQL and PHP
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org





More information about the talk mailing list