M
M
Max_Borisov2017-03-17 16:25:51
PHP
Max_Borisov, 2017-03-17 16:25:51

Php session return to previous page?

Good afternoon. There is an array stored in the session. On the page, using ajax requests, we change some elements of this array. We go to any other page, go back using the "back" button in the browser, the value of the array remains what it was before the update by ajax requests. If you reload the page or go to it not using the "back" button, then everything is fine. What is the problem and how to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
Wexter, 2017-03-17
@Wexter

store the array in localStorage, not in the session

A
Alexander Aksentiev, 2017-03-17
@Sanasol

It's not a problem, it's the browser that caches the data.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question