Re: CGI / Apache module session permissions
| From: | Steve Clay | Date: | Sat, 18 May 2002 19:45:23 +0000 |
| Subject: | Re: CGI / Apache module session permissions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-98285@lists.php.net to get a copy of this message | ||
Saturday, May 18, 2002, 1:05:30 PM, I wrote:
SC> CGI, which works fine except that the CGI doesn't have permissions to
SC> my sessions that were saved running under the Apache module. I
Figured it out:
from Apache mod script before CGI script:
//allow CGI to access session
$sess_file = session_save_path()."/sess_".session_id();
chmod($sess_file,0666);
Sorry for the noise..
Steve
--
steve@mrclay.org ** http://mrclay.org