P
P
pavelmosin2019-07-09 15:11:42
1C-Bitrix
pavelmosin, 2019-07-09 15:11:42

Bitrix. $_SESSION contents not visible in init.php?

Good afternoon.
I set in the file $_SESSION['test'] = $_POST['test'];
In init.php

require_once($_SERVER['DOCUMENT_ROOT'] . "/bitrix/modules/main/include/prolog_before.php");
print_r( $_SESSION );

Array
(
    [SALE_USER_ID] => 1
)

Why?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Panteleev, 2019-07-09
@pavelmosin

The session opens later. Page and order of its execution

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question