K
K
Kostya007232016-02-18 23:57:09
PHP
Kostya00723, 2016-02-18 23:57:09

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

4 answer(s)
D
D', 2016-02-18
@Denormalization

It is forbidden

Y
Yuriyant, 2016-02-19
@yuriyant

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.

B
Boris Benkovsky, 2014-11-05
@benbor

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)

I
Igor Balyas, 2014-11-05
@ihorbalias

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 question

Ask a Question

731 491 924 answers to any question