session

c# how to determine session id of specific logged in windows user

喜欢而已 提交于 2021-01-07 10:05:22
问题 like the title said, i want to create a method to search a windows user session id by the domainname\username. I already finished to read the currently logged in users, but id do not know to determine their session id. My goal is to kill the session of specific users. 回答1: Based on the code from: How do you retrieve a list of logged-in/connected users in .NET? Modified a bit, the following code will list the logged in users and their corresponding session ids. class Program { static void Main

c# how to determine session id of specific logged in windows user

自古美人都是妖i 提交于 2021-01-07 10:02:13
问题 like the title said, i want to create a method to search a windows user session id by the domainname\username. I already finished to read the currently logged in users, but id do not know to determine their session id. My goal is to kill the session of specific users. 回答1: Based on the code from: How do you retrieve a list of logged-in/connected users in .NET? Modified a bit, the following code will list the logged in users and their corresponding session ids. class Program { static void Main

oidc/logout with id_token_hint is not working

这一生的挚爱 提交于 2021-01-07 02:35:32
问题 I am sending https://localhost:9443/oidc/logout?id_token_hint=my_id_token and getting the page with the message Identity Server You have successfully logged out. But when I go back to the login page,it is returning authorization code instead of asking login/password. 回答1: According to the browser traces shared in the comments, it seems you are sending the logout request to an incorrect hostname+port (aisoip-devis.xxxxx.kz:9443). Due to that reason, the commonauthId cookie on the browser

Perpetual counter within the same web session

扶醉桌前 提交于 2021-01-05 12:50:58
问题 Trying to have a counter on a web page that does not restart on each different page view within the same user session. Currently using this code (thanks to Praveen Kumar Purushothaman) but this counter resets every time a different page is viewed. setTimeout(start, 0); var i = 0; var num = document.getElementById("number"); function start() { increase(); setInterval(increase, 1000); } function increase() { if (i < 100000) { i += 10.41; num.innerText = i.toFixed(2); } } <span id="number"><

Perpetual counter within the same web session

两盒软妹~` 提交于 2021-01-05 12:49:20
问题 Trying to have a counter on a web page that does not restart on each different page view within the same user session. Currently using this code (thanks to Praveen Kumar Purushothaman) but this counter resets every time a different page is viewed. setTimeout(start, 0); var i = 0; var num = document.getElementById("number"); function start() { increase(); setInterval(increase, 1000); } function increase() { if (i < 100000) { i += 10.41; num.innerText = i.toFixed(2); } } <span id="number"><

Perpetual counter within the same web session

对着背影说爱祢 提交于 2021-01-05 12:47:57
问题 Trying to have a counter on a web page that does not restart on each different page view within the same user session. Currently using this code (thanks to Praveen Kumar Purushothaman) but this counter resets every time a different page is viewed. setTimeout(start, 0); var i = 0; var num = document.getElementById("number"); function start() { increase(); setInterval(increase, 1000); } function increase() { if (i < 100000) { i += 10.41; num.innerText = i.toFixed(2); } } <span id="number"><

I can't set the SameSite attribute of the cookie to None in Nodejs (Express)

邮差的信 提交于 2021-01-04 07:53:33
问题 We are creating a backend for a Twitter view app in Nodejs (Express). I'm thinking of using Twitter Api for login and storing the token returned after authentication to the session and then restoring the session from the cookie when it is accessed again. However, the cookie is blocked when it is accessed again and I can't restore the session information. The browser I use is chrome, but since chrome version 80, SameSite attribute seems to be Lax (sends a cookie when called from the site of

I can't set the SameSite attribute of the cookie to None in Nodejs (Express)

痴心易碎 提交于 2021-01-04 07:50:54
问题 We are creating a backend for a Twitter view app in Nodejs (Express). I'm thinking of using Twitter Api for login and storing the token returned after authentication to the session and then restoring the session from the cookie when it is accessed again. However, the cookie is blocked when it is accessed again and I can't restore the session information. The browser I use is chrome, but since chrome version 80, SameSite attribute seems to be Lax (sends a cookie when called from the site of

How to extend session cookie lifetime in Symfony?

旧街凉风 提交于 2020-12-29 12:01:37
问题 On accessing session data on the server side, its modified_time gets set, therefore extending its expiration time into the future. However, this does not happen for PHPSESSID cookie. While session data expiration on the server side is extended, the cookie expiration is not. If the cookie expires, the user will lose his session - he will have no session ID to give when sending a request. Is there any way to tell Symfony\Component\HttpFoundation\Session\Session to extend the cookie expiration

Difference between setcookie() and session_set_cookie_params() functions

限于喜欢 提交于 2020-12-29 10:01:13
问题 I am trying to understand the difference between PHP functions setcookie() and session_set_cookie_params(). Looks like both functions are doing the same kind of tasks but setcookie() can be used to create cookie with name & value. I tried to understand PHP manuals but no clear differences pointed out in it. Thanks 回答1: session_set_cookie_params(seconds) session_start() does two things, it creates a temporary file on the server of which to store session data, and also sends a cookie to the