So now to our decision.
Video and now we over here have about Sishen, one decision to file Soraida on this one.
We are going to discuss how to modify the station variable and how to destroy the mission.
OK, so let me go ahead.
Sishen had my third violin here, and if I go ahead and find my HP tags and the firestation valuable,
all you have to do is to sit again to another value, another value, OK?
And of course, all of this will be dynamic based on your users choice, your long, long goal every
time and change the variable values in your code.
This will be this will all be dynamic on you, on your application.
OK, so let me first sort of decision.
As I said, you need to start sition, do something with it every time you need to change anything and
your decisions, you need to start the session.
And I thought, OK, and now we can if we can.
Just go ahead and buy our session.
Variables just like that, we have zeros on them.
Let me change it to John.
One, two, three, OK?
And, of course, you can change.
Any.
Why do you want any variable in decision, whatever you want, as long as it's there, or it will trigger
an error?
Of course, we need to change this to whatever you want.
OK, let me set it to twenty five.
Now let me echo those issues and not let me say go.
Sishen.
Now, user name.
And.
And that line that we need to concatenate, OK, Sishen.
And the age when this was a semicolon, I'll let me add some text, I can get it right here.
I see my new.
Is.
OK, like this and.
Let me concatenated, we didn't get it right here.
The needs of data and continue to stuff that over here, not to hear
my.
Is.
OK, now it's all set.
Now let's get some simple message.
It may be our first.
So we can get on your line.
So on message, let's see now.
Sid.
OK, so this is it.
Let me go back to my brother right here and we are going to change this to three so we can secure this.
Now, if you look over here, my new name is John one, two, three, and my age is twenty five.
And now it's given us for our value right here, value on our message.
So now what if we want to destroy all decision exits your website or close your website or close the
browser, the decision will be destroyed.
OK, it's just a simple example of this.
When your user log log out of your website, this will actually get you right to destroy everything
and to get him voted back to the home page again.
OK, so if we go ahead and.
Get to our first final session was a decision or decisions its decision HB.
And Peter and of course, we need to start with our session start.
Variable, sorry, it just destroyed Sishen.
Uncited.
Which will set all the variables on the script.
OK, now to the last one, which is a decision, this jury just like this.
OK, so what basically happens right here?
We're talking decision and now we're sitting there, all of the variables, and it will remove all of
the value of variables and of course, the variable variable values.
And now we're destroying the decision.
And let me echo some single line over here.
Session's.
So now is this just.
Verify since this.
OK.
By second trading, OK, you have to know what you have to know about me is I suck at writing and it's
like, OK, so now if we go to our or.
OK, now, decision now is destroyed now if we went ahead, I if we go back to our decision to decision
to file or chose right over here.
Decision to allow, OK, this was.
This was echoing out the user name and the age, if we go back to it on our brother.
Right now, it is undefined index user name and age online, 16 on this line of code right here.
So our interpreter doesn't know what this means because we actually destroyed our variables and destroyed
the whole system.
OK, so.
All we have to do, of course, to get this back again, and of course, you will have some security
configuration to prevent this, if we go ahead and look back to our situation, one of two will run
descriptors with which starts the situation right here and see this and see this to their values.
And if we go out.
The decision, though, it will give us back the values, dear, and of course, we can do that back
and forth we go too far.
This will destroy this mission.
And now if we go back again, OK, now decisions are destroyed.
Of course, you will have some kind of, you know, file configuration to prevent this decision because
it's a big security issue.
OK, so this is it for Sessions and to you on the next video.