The need to retrieve data from a cookie that contains a registered client

I have two different pages in a WP7 application, Page1 and Page2. On the first page, the user is asked to log in using the .NET API through the WCF service. When a user logs in to this client, he is saved in a cookie.

When the user fills in his username and password, click OK, the application redirects this person to the next page using NavigationService. But after redirecting the person to the Page 2 page, I canโ€™t access the cookie of the current registered user.

I can get the registered user on page 1 where the CookieContainer is created, and the client will be saved in this specific container. On page2, I want to use the same cookie as in Page1, how do I do this?

+4
source share
1 answer

You can save user credentials in isolated storage and use these credentials on other pages of IsolatedStorage Documentaion

+2
source

Source: https://habr.com/ru/post/1402395/


All Articles