PHP/Apache server - session.save_path problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Charlie

    PHP/Apache server - session.save_path problem

    Hello

    I'm in desperate need of help. I can't get PHP sessions to work
    because session.save_pa th isn't set for some reason. phpinfo() reports
    that session.save_pa th = "No Value". I have WinXP Pro, Apache 2.0.55
    and PHP 4.4.0 server configuration.

    No matter what I put in session.save_pa th in php.ini, I just keeps
    saying session.save_pa th = "No Value". Have tried "c:/windows/temp",
    "c:\\windows\\t emp", "c:/temp" with and without the quotes but to no
    avail.

    I've restarted Apache server each time after modifying the ini. Also
    the php.ini path reported by phpinfo() seems point to the correct
    file.

    TIA.
  • J2be

    #2
    Re: PHP/Apache server - session.save_pa th problem


    "Charlie" <user@usa.net > wrote in message
    news:rca0q11p4t vakinfo0m2ug9h9 gl45r3h4h@4ax.c om...[color=blue]
    > Hello
    >
    > I'm in desperate need of help. I can't get PHP sessions to work
    > because session.save_pa th isn't set for some reason. phpinfo() reports
    > that session.save_pa th = "No Value". I have WinXP Pro, Apache 2.0.55
    > and PHP 4.4.0 server configuration.
    >
    > No matter what I put in session.save_pa th in php.ini, I just keeps
    > saying session.save_pa th = "No Value". Have tried "c:/windows/temp",
    > "c:\\windows\\t emp", "c:/temp" with and without the quotes but to no
    > avail.
    >
    > I've restarted Apache server each time after modifying the ini. Also
    > the php.ini path reported by phpinfo() seems point to the correct
    > file.
    >
    > TIA.[/color]

    Make sure that you are editing the right php.ini



    Comment

    • Charlie

      #3
      Re: PHP/Apache server - session.save_pa th problem

      On Wed, 14 Dec 2005 20:41:43 +0100, "J2be" <info@nospamj2b e.com>
      wrote:
      [color=blue]
      >
      >"Charlie" <user@usa.net > wrote in message
      >news:rca0q11p4 tvakinfo0m2ug9h 9gl45r3h4h@4ax. com...[color=green]
      >> Hello
      >>
      >> I'm in desperate need of help. I can't get PHP sessions to work
      >> because session.save_pa th isn't set for some reason. phpinfo() reports
      >> that session.save_pa th = "No Value". I have WinXP Pro, Apache 2.0.55
      >> and PHP 4.4.0 server configuration.
      >>
      >> No matter what I put in session.save_pa th in php.ini, I just keeps
      >> saying session.save_pa th = "No Value". Have tried "c:/windows/temp",
      >> "c:\\windows\\t emp", "c:/temp" with and without the quotes but to no
      >> avail.
      >>
      >> I've restarted Apache server each time after modifying the ini. Also
      >> the php.ini path reported by phpinfo() seems point to the correct
      >> file.
      >>
      >> TIA.[/color]
      >
      >Make sure that you are editing the right php.ini
      >
      >[/color]

      phpinfo() says it's using the same ini I edited. There's no other
      php.ini files on my system. Workaround that seems to work (albeit
      ugly) is to call session_save_pa th() each time before session_start()
      from the PHP script.

      Comment

      • mercedes1954

        #4
        Re: PHP/Apache server - session.save_pa th problem

        If you're using XP your windows directory is probably c:\winnt so use
        the line session.save_pa th = c:/winnt/temp and make sure there is such
        a directory. If not create it.


        Charlie wrote:[color=blue]
        > On Wed, 14 Dec 2005 20:41:43 +0100, "J2be" <info@nospamj2b e.com>
        > wrote:
        >[color=green]
        > >
        > >"Charlie" <user@usa.net > wrote in message
        > >news:rca0q11p4 tvakinfo0m2ug9h 9gl45r3h4h@4ax. com...[color=darkred]
        > >> Hello
        > >>
        > >> I'm in desperate need of help. I can't get PHP sessions to work
        > >> because session.save_pa th isn't set for some reason. phpinfo() reports
        > >> that session.save_pa th = "No Value". I have WinXP Pro, Apache 2.0.55
        > >> and PHP 4.4.0 server configuration.
        > >>
        > >> No matter what I put in session.save_pa th in php.ini, I just keeps
        > >> saying session.save_pa th = "No Value". Have tried "c:/windows/temp",
        > >> "c:\\windows\\t emp", "c:/temp" with and without the quotes but to no
        > >> avail.
        > >>
        > >> I've restarted Apache server each time after modifying the ini. Also
        > >> the php.ini path reported by phpinfo() seems point to the correct
        > >> file.
        > >>
        > >> TIA.[/color]
        > >
        > >Make sure that you are editing the right php.ini
        > >
        > >[/color]
        >
        > phpinfo() says it's using the same ini I edited. There's no other
        > php.ini files on my system. Workaround that seems to work (albeit
        > ugly) is to call session_save_pa th() each time before session_start()
        > from the PHP script.[/color]

        Comment

        Working...