K
K
knowledge2018-01-21 15:34:51
PHP
knowledge, 2018-01-21 15:34:51

Where is the data from the SESSION array stored?

configured htaccess session.save_path site/var/sessions/
now session files are saved to it
made session_start
wrote a variable to the session $_SESSION['file'] = 'file'
reads fine and everything works
but in the file itself in the site/var/sessions folder /sess_sfsdfj4j234 does not have this data, it is empty,
respectively, variables from the SESSION array are stored in the computer's memory, and not in a file?
how to save to file?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
ChEl, 2018-01-25
@h1l4nd0r

htaccess refers to apache and not to php
see where php saves sessions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question