03:07
So essentially now what we want to do is after we've signed out, invalidated our session, regenerated our token or wherever you're doing this manually in your app, you're either going to use the inertia facade or the inertia helper to clear our history. So that's going to go ahead and clear all of the history that you have within the browser within this inertia session. Now that we've done that, let's go ahead and see what happens. I'm currently signed in over on my dashboard and I'm viewing this secret data. I'm going to go ahead and log out. That would have cleared the history out. If we head back now, you can see this no longer works. So it has now forwarded us back over to the login page and we can't or someone else can't go ahead and navigate back to see this information. OK, so most of the time you want to globally enable this, but what happens if you just want to do this per request or you want to disable this per request? Let's take a look. So we're still going to use inertia clear history, but let's go over to our dashboard. So let's go over to our web route since this is just a root closure. In here specifically, we're going to go ahead and again using either the inertia helper or the inertia facade. We're going to say encrypt history and we're going to explicitly set this to false. So just if you wanted to disable this for your dashboard, just before you return your inertia response is where you're going to want to call encrypt history false to disable this. Let's go ahead and have a look. So let's go and log ourselves out. In fact, we'll browse around just for a second. So let's re hit this page. Let's go ahead and log out and let's go back again and you can see that that's been disabled for that page specifically.