Answer the question
In order to leave comments, you need to log in
How to replace the session value through the browser and is it possible?
Regular operation $_SESSION['one']=1;
Is it possible through the browser (developer elements) to replace one with 2ku or some other value?
Or by some other means (by the user)
Answer the question
In order to leave comments, you need to log in
It is impossible in $_SESSION, but maybe $_COOKIE is suitable for you, with which you can work both through JS and through PHP, but there are some restrictions on the amount of information that can be stored in this way.
What's the replacement? in what? where is the example of the text you ran it on? where are the names of the programming language? Or are you naively assuming that all programming languages implement regexp in the same way? It is better if it is a piece of code, or jsfiddle (if we are talking about js)
php, replacement through the preg_replace function, example 8496121212789161212122
first, 10 characters are replaced at the beginning, and 11 should be taken first.
does: 8496121212|789161212122
should do: 84961212127|89161212122
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question