My guys and what's going on, so in this one, we're going to we're going to talk about another piece
over Global, which is Decision Day.
So let's start off what's basically a decision.
A decision is a way of storing data or values across multiple pages so we can use them later in our
in our pages.
OK, so let me give you another just another comparison, which will demonstrate this.
When you're working on your Windows desktop applications or any application with her on Mac, Windows,
Linux, whatever, the computer knows who you are and what you're doing to your applications.
OK.
But when you're working on a website or a Web application, Web servers don't know what you're doing
or who you are.
OK, so we basically need decisions to edit, to identify who you are and what you're doing to our to
our pages or to our website, basically.
OK, so we can use that data later to manage your data and change it as you change it.
OK, so this is basically a decision.
So how the work actually when you're creating a situation, it starts as some kind of hash it it's basically
a bunch of characters and numbers and stories them on your computer and then the decision can identify
who you are and what you're going to reach and if you have the permission to do this or not.
So this is basically a decision, OK, and this is basically what is decision and how the work.
OK, so now we need to do our example.
And we are going to need.
We are going we are going to need to start our.
Our session, this was a start session session.
Yeah, it's Sishen.
Start.
Like that.
OK, so this is basically how we start position, OK?
Now, to let me just.
Gives us a space and now we're starting our position and let's say we want to set some sort of our global
position variable to some values.
OK, well, we have to do is type in our dollar sign.
Or dash or underscore or whatever you call it, and Sishen.
And the name of this Sishen variable.
OK, let me call this user.
Name equals, let's say, whatever, Jack.
Won the lottery and we can sit as many as we want.
Sishen.
Well, it may say age.
US, it can be any at a time and say this is V22 and I just assert one session.
And this will be my favorite color.
OK.
So this is will be green.
So now we start with our decision.
OK, now A when we try and execute, this hash will be executed and put into our computer so that when
we try when we try and retrieve this is another Beijng.
It will it will be three of them after creating position after hour, after going after the match,
it will give through and when the match is through, this will be executed when we go it out on our
next match.
OK, so now we are in session one that BHP, which with me.
Let's create another file or call it decision.
That BHP.
This Mitiga and.
And sition lectures will be kind of long, but I need to give you.
All I have to give you in this situation there in this situation shows you cannot do anything, OK,
now if you go ahead and four, of course, when we try and retrieve our values right here.
We need to also start our session or our goal will be will break this code, which is sition start may
need to be the first thing in every page.
OK, you cannot write it down or your code will break.
Start.
OK, so real quick, and if we end this with me and I had some cold, just pretty quick.
Body.
And if we now try and retrieve our.
Our Sishen variables.
Give me a call.
Well, it's equal out there, username.
Sicher.
Now, let me close this, and now if we see this, notice that we here have our session start session
and start.
And I said, OK, now this is all set.
Let me save this and go to now my Sishen.
To file a look to see what happens.
OK.
Now we have some kind of error.
So sorry for the Borza, the mistake or the error was actually really easy.
I actually created the script, but I didn't execute it.
I saved it, but I didn't execute it.
I went right away for the mission to rage on.
I executed it without actually having to execute, without executing this one right here, OK, which
will trigger an error, as you know.
So.
OK, so now if we if we acquired our user name, I executed Descript.
And I hear phrases like that will now get the user names.
Of course I can.
You can go out.
I can't get the position of the age.
It's.
As.
Sasha and Paige.
And see this and go back over here and in your fridge and there you go, ages, whatever.
The age, it was Great Depression again and.
It's that very sour midwicket.
A bit just like that.
OK, so this is it for this one and see you on the next video.