stay-logged-in

Forms Authentication cookie seems to stop working

拜拜、爱过 提交于 2020-01-06 06:41:15
问题 I want to have functionality on my application that lets a user check off that they wish to stay logged indefinitely (arbitrarily setting the cookie expiration at 3 months from NOW). The code I have for dealing with this is private static HttpCookie GetFormsAuthenticationCookie(string userNameResponse, bool persistCookie) { var cookie = FormsAuthentication.GetAuthCookie(userNameResponse, persistCookie); if (persistCookie) cookie.Expires = DateTime.Now.AddMonths(3); return cookie; } private

Converting a Delphi application to run as a service - is it necessary?

﹥>﹥吖頭↗ 提交于 2019-12-31 08:39:33
问题 I have a delphi app that logs data from various places and writes the data to a file. The app has quite an extensive GUI to allow display of the data, configuration of the options, etc. One user has requested that the app be changed to that it can be run as a service. His reasoning is that the app could then be started at boot time and run without any user being logged in and would be available regardless of who was logged in. My question is this: Is there any other solution that would enable

How to keep user Logged-In always “Connected with Server”

…衆ロ難τιáo~ 提交于 2019-12-22 19:01:30
问题 I'm working on an App, where I wanted the user to keep logged-in means always connected to the server after successful login(just like facebook app). I tried to google this but did not found any correct logic of this. Many website suggests to use SharedPreference but keeping the user's login cred. on SheredPreference is not good idea and did not provide any answer to stay connected to the server. I'm kinda stuck with this idea. I just need logic to implement this. Any suggestions and example

How to keep user Logged-In always “Connected with Server”

◇◆丶佛笑我妖孽 提交于 2019-12-22 19:01:25
问题 I'm working on an App, where I wanted the user to keep logged-in means always connected to the server after successful login(just like facebook app). I tried to google this but did not found any correct logic of this. Many website suggests to use SharedPreference but keeping the user's login cred. on SheredPreference is not good idea and did not provide any answer to stay connected to the server. I'm kinda stuck with this idea. I just need logic to implement this. Any suggestions and example

SPA App Azure B2C Authentication with MSAL. Keep user logged in

旧街凉风 提交于 2019-12-11 02:28:20
问题 I have a SPA App (VueJS) which uses Azure B2C with MSAL to authenticate users. Authentication works just fine. But what does not work is, that the user is not kept logged in. As long as i use the app, everything works just fine. But when i start my app the next day i have to relogin (or just reselect the account I want to use), but I would like to have the same user experience like for example the azure portal. I can revisit the portal after one week and do not have to relogin. How can i

Global OnLoggedIn event in ASP.net?

不打扰是莪最后的温柔 提交于 2019-12-07 04:15:30
问题 Is there a way to be notified when a user becomes logged in with an ASP.net website? Note : A user can become logged in without visiting a "login page". If the "remember me" cookie exists, they can hit an arbitrary page and be logged in. When a user is logged in i want to fetch some session related information. Note : There is the Login.LoggedIn event. Problem is that that control doesn't exist on every page; and the one page it is present on ( Login.aspx ) doesn't call OnLoggedIn event. In

How to keep user Logged-In always “Connected with Server”

别来无恙 提交于 2019-12-06 15:01:31
I'm working on an App, where I wanted the user to keep logged-in means always connected to the server after successful login(just like facebook app). I tried to google this but did not found any correct logic of this. Many website suggests to use SharedPreference but keeping the user's login cred. on SheredPreference is not good idea and did not provide any answer to stay connected to the server. I'm kinda stuck with this idea. I just need logic to implement this. Any suggestions and example code are welcome. I'm android noob. Storing user's credentials on device is not a good way of designing

Global OnLoggedIn event in ASP.net?

为君一笑 提交于 2019-12-05 12:30:43
Is there a way to be notified when a user becomes logged in with an ASP.net website? Note : A user can become logged in without visiting a "login page". If the "remember me" cookie exists, they can hit an arbitrary page and be logged in. When a user is logged in i want to fetch some session related information. Note : There is the Login.LoggedIn event. Problem is that that control doesn't exist on every page; and the one page it is present on ( Login.aspx ) doesn't call OnLoggedIn event. In the same way that Global.asax has a global On Session Start notification: void Session_Start(object

Stay Logged In Best Practices: How does a username in the cookie make it more secure?

两盒软妹~` 提交于 2019-12-03 17:24:47
问题 This is a branch of another question: What is the best way to implement "remember me" for a website? The top answer is to implement this: http://jaspan.com/improved_persistent_login_cookie_best_practice A summary: Use a random number as a Series Token, and another as a Login Token. Place those in the Stay Logged In cookie, along with the username. Assign a second, normal Session cookie. Each time a user arrives without a Session cookie, consume the Stay Logged In cookie. Issue a new one, this

Converting a Delphi application to run as a service - is it necessary?

自闭症网瘾萝莉.ら 提交于 2019-12-02 18:16:37
I have a delphi app that logs data from various places and writes the data to a file. The app has quite an extensive GUI to allow display of the data, configuration of the options, etc. One user has requested that the app be changed to that it can be run as a service. His reasoning is that the app could then be started at boot time and run without any user being logged in and would be available regardless of who was logged in. My question is this: Is there any other solution that would enable me to install the app as it now exists so that it would still run with no user logged in and still be