w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to make a page not directly accessible in Flask?

Before you issue the redirect, set a flag in the session object. The "inprogress" view should check that flag. if it's set, groovy, render the page. If it's not, then redirect them to another page (and flash a warning about trying to access that page, optionally).





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.