J
J
JackShcherbakov2018-02-05 08:37:12
PHP
JackShcherbakov, 2018-02-05 08:37:12

How to set session.auto_start via php.ini and not via .htaccess?

Hello!
The php.ini file contains the following line:


ATTENTION! This is a temporary file, editing it is pointless!

Here the question arises - where is the file that can be edited? What is most interesting, in the table that I get as a result of executing the phpinfo () command, the Loaded Configuration File item points to exactly the temporary file, whose editing is pointless! Where is the normal file?
Through ini_set () does not work either.
It works only if you add .htaccess to the site root with the following content:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
php_value session.auto_start On
# END WordPress

Thanks in advance!
UPD:
After changing php.ini I rebooted the server.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Hog, 2018-02-05
@Skiphog

ATTENTION! This is a temporary file, editing it is pointless!

I assume you are using OpenServer?
If so, then the path to the ini file:
\userdata\config\текущаяВерсияPHP.ini

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question