Page 1 of 2

make app only accessible by logged in users

Posted: Mon Feb 10, 2014 6:42 pm
by PTR

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?


make app only accessible by logged in users

Posted: Mon Feb 10, 2014 7:42 pm
by Kateryna Grynko

Hi Peter,

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


make app only accessible by logged in users

Posted: Mon Feb 10, 2014 8:39 pm
by PTR

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!!


make app only accessible by logged in users

Posted: Mon Feb 10, 2014 8:50 pm
by PTR

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!!


make app only accessible by logged in users

Posted: Mon Feb 10, 2014 10:09 pm
by Kateryna Grynko

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.


make app only accessible by logged in users

Posted: Mon Feb 10, 2014 10:28 pm
by PTR

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


make app only accessible by logged in users

Posted: Tue Feb 11, 2014 10:45 am
by PTR

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


make app only accessible by logged in users

Posted: Tue Feb 11, 2014 10:45 am
by PTR

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


make app only accessible by logged in users

Posted: Tue Feb 11, 2014 10:47 am
by Maryna Brodina

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


make app only accessible by logged in users

Posted: Tue Feb 11, 2014 10:48 am
by PTR

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