New Posts New Posts RSS Feed: Refresh and login
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Refresh and login

 Post Reply Post Reply Page  <12
Author
pponzano View Drop Down
Senior Member
Senior Member
Avatar

Joined: 28-Apr-2011
Location: Italy
Posts: 165
Post Options Post Options   Quote pponzano Quote  Post ReplyReply Direct Link To This Post Topic: Refresh and login
    Posted: 05-Jun-2012 at 1:04am
Hello,
I've got a silverlight 5 application that at the startsup shows a loginform (similar to the TempHire application),authentication works fine and children are happy :D

I've got a small problem that's when the user press F5 the browser refresh and it asks me again to login... I've tried to check at the refresh if the Principal is logged in but it's false... how can I handle this scenario?

Thanks

Paolo

On my Shell view I do

  protected override void OnViewLoaded(object view)
        {
            base.OnViewLoaded(view);

            if (!userService.IsLoggedIn) //<- always false
            {
                PerformLogin().ToSequentialResult().Execute();
            }
        }

Thanks
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down