PTR
Posts: 0
Joined: Fri Feb 07, 2014 2:07 pm

make app only accessible by logged in users

i did everything from the beginning and followed the guide in this link:
http://docs.appery.io/tutorials/build...

When Logout is success it should navigate me to the sign in screen, and thats working perfectly. But the problem is that i can still access any page within my app just by typing in the link my browser. Its not redericting me to the login page as it should.

this means that anybody who has a link to any other page in my app can access them without logging in.

To be specific, i need the app to only be accessible by logged in users. how can i do that?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

make app only accessible by logged in users

Hi Peter,

On each page, add a check if a user is logged in. If not, add a redirect to your login page.

PTR
Posts: 0
Joined: Fri Feb 07, 2014 2:07 pm

make app only accessible by logged in users

Hi Katia

Thx for the fast response!

Can you please explain how to add a check. I am still new at this and i need all the help i can get. Thx!!

PTR
Posts: 0
Joined: Fri Feb 07, 2014 2:07 pm

make app only accessible by logged in users

Hi Katia

Thx for the fast response!

Can you please explain how to add a check. I am still new at this and i need all the help i can get. Thx!!

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

make app only accessible by logged in users

Hi Peter,

Forbidding access is not that ease. For example, after user logged in your app save some key in cookies (https://developer.mozilla.org/en-US/d...) and check this value on each page.

PTR
Posts: 0
Joined: Fri Feb 07, 2014 2:07 pm

make app only accessible by logged in users

Im really stuck on this one. Please Katya, could you help me to implement the check/restriction. I really need your help on this one, its one of my final steps to complete the app

PTR
Posts: 0
Joined: Fri Feb 07, 2014 2:07 pm

make app only accessible by logged in users

Hi Katia

Searched for a solution for more than 6 hours yesterdag, i still cant solve the issue. Could you please help me to implement the check? I really need your help so i can finish the app, please

PTR
Posts: 0
Joined: Fri Feb 07, 2014 2:07 pm

make app only accessible by logged in users

Hi Katia

Searched for a solution for more than 6 hours yesterdag, i still cant solve the issue. Could you please help me to implement the check? I really need your help so i can finish the app, please

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

make app only accessible by logged in users

Hello Peter! We're working on your request at the moment.

PTR
Posts: 0
Joined: Fri Feb 07, 2014 2:07 pm

make app only accessible by logged in users

Thank you so mutch, i really appreciate all your help!

Return to “Issues”