Hi,

I tried to relocate my session files with session_save_path() (and also with php_value session.save_path "/myNewPath"). Works great except that now I get the "Permission denied (13) error", indicating that I don't have write permission for that folder.

This is on a shared hosting server. Is that something under my control, i.e via .htaccess and what would I have to change? Or is it that I'm stuck with the /tmp folder that is predefined for everybody?

Bjom

    Just make sure the session.save_path folder is writable by the server(give write rights to other/world). Yeah you should be able to use .htaccess and add that php_value session.save_path "/myNewPath" to it.

      I know that I can use .htaccess to set the session save path. It works great.

      The problem IS however that I obviously do NOT have write permission and I need to know for sure, if i can do anything about that with .htaccess on my shared host or not and how to do it.

      Bjom

        Well just create the folder and give it write permissions. You can do that even with FTP.

          That didn't work well. I had hoped there was some other way to influence this, but unfortunately this seems to have to do with how my provider handles the servers. I'll have to call there monday and hope they let me set this up as I like.

          ty for lookin in 🙂

          Bjom

            Write a Reply...