PHP $ _SESSION can contain large files?

I am creating a multi-page form with PHP. I store most of the value in $ _SESSION. Using the following method ...

$_SESSION['title'] = $_POST['title'];

It has been working fine so far, but I'm not sure if it will be able to store PDF files, videos, etc.

Are there only lines and intigers or files in $ _SESSION that can be saved there?

+5
source share
6 answers

The maximum size of $ _SESSION is the maximum memory available for a PHP script, but there is a chance that you even get to 1/3 of this, you are doing something wrong.

$_SESSION, , , , , . , .

, $_SESSION. , , .

+7

, . PHP, , .

: , memory_limit php.ini.

+5

, $_SESSION, .

+2

. - PHP script - , 64 , . , , - , ?

+1

, .

, , : PHP

, , , .

+1

$_SESSION stored on the server in the folder where it is defined in php.ini

since there is space on your server, you can store anything on $_SESSION

0
source

All Articles