How to make Perspective page jump to login page when opening it in gateway?

Hey guys,
Here is my project in gateway:

and what should I do to make it possible that when I Launch Project, the page would jump to the login page below and require the user to login first ?

I tried it in the Startup Script but it seems it doesn’t work, it still directly jump to the home page.
Can anybody help me!!! Thank you guys!!!

Have you configured security settings for the project from the project properties available from the designer?

The new auto login feature in Perspective may be what you are looking for (merged into 8.1.8):

@lrose is correct: if you want to require a user be logged in to use your project, then you need to specify that the project requires at least a security level of Authenticated.