PHP5 session problem on vista [Answered]RSS

2 replies

Last post Aug 11, 2007 12:00 PM by jaive

  • PHP5 session problem on vista

    Jul 08, 2007 06:00 AM|aspr|LINK


    I have installed php 5.2.3 on IIS7 (vista). Every things work fine except sessions. I have installed php on


    and have edited php.ini to point session_save_path to

    d:\php5\sessiondata\ (with full permissions for iuser and inet accounts)

    whenever I access php page using session, php is creating a new sessions ( can see different session id's each time we refresh the page), instead of maintaining the old one.

    I tried the following

    icacls d:\php5\sessiondata\ /grant Users:(CI)(S,WD,AD,X)

    icacls d:\php5\sessiondata\ /grant "CREATOR OWNER":(OI)(CI)(IO)(F)

    but have the same problem. Any one have any idea for fixing this?

    Thanks in advance..


    PHP vista sessions iis7

  • Re: PHP5 session problem on vista

    Jul 09, 2007 04:49 PM|aspr|LINK


    At last I got it working.. here is the fix..

    after going through

    BillS' IIS Blog

    and following

    icacls %windir%\serviceprofiles\networkservice\AppData\Local\Temp /grant Users:(CI)(S,WD,AD,X)

    icacls %windir%\serviceprofiles\networkservice\AppData\Local\Temp /grant "CREATOR OWNER":(OI)(CI)(IO)(F)

    I tried setting no value to the session_save_path, so that it will take the default temp directory..and sessions work fine..

    thank you Bills




  • Re: PHP5 session problem on vista

    Aug 11, 2007 12:00 PM|jaive|LINK


    I get this problem on my server, PHP+IIS5( XP Pro), PHP+IIS6( win2k3 server SP2 R2).

    Any one help me?

    Thanks ...