c# - UWP, How to detect that a user have logged in before? -


i trying develop uwp application needs logged once. how can detect user have logged in before or not?

p.s. user may log out , should show log in page in next lunch.

store value in localsettings after loggedin first time

applicationdata.current.localsettings.values["loggedin"] = 1; 

in app.xaml, use below code check value

if (applicationdata.current.localsettings.values.containskey("loggedin") == 1) 

Comments

Popular posts from this blog

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -