A
A
Alexander2020-12-05 15:34:23
1C-Bitrix
Alexander, 2020-12-05 15:34:23

Since when is pagination written to the session and how to deal with it?

I started to add additional loading to the component and was very surprised - now if you do not pass the page number, then the number of the last page you visited is taken by default.
It turns out now this garbage is written in the session:
5fcb7e38241d5735198062.png
Since when?
What for?
And how to deal with it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2020-12-05
Madzhugin @Suntechnic

Insert a call to
CPageOption::SetOptionString("main", "nav_page_in_session", "N"); at the beginning of the component.
and the navigation will no longer be recorded in the session, this line is even in the standard news.list component

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question