在Linux / Windows上唯一标识用户会话

时间:2023-01-17 07:08:06

We do have a client software which communicates to a server. On every start of the client the user has to put in username/password. Now it would be nice if the user did login once (assuming he is still in the same operating system session) subsequent logins wouldn't require a password. (Sidenote: the security requirements aren't really high, so this would be okay). Is there some unique id which the client can extract from the system that ids the session? If yes the server could save the session id and if it is the same we wouldn't need to ask for a password.

我们有一个与服务器通信的客户端软件。在客户端的每次启动时,用户都必须输入用户名/密码。现在,如果用户登录一次(假设他仍处于相同的操作系统会话中)后续登录将不需要密码将是很好的。 (旁注:安全要求不是很高,所以这没关系)。是否有一些客户端可以从会话中提取的唯一ID?如果是,服务器可以保存会话ID,如果它是相同的,我们不需要要求密码。

Thanks in advance.

提前致谢。

P.S.: Keberos is an overkill in that case…

P.S。:Keberos在这种情况下是一种矫枉过正的行为......

1 个解决方案

#1


0  

Isn't this why god invented Cookies?

这不是上帝发明饼干的原因吗?

#1


0  

Isn't this why god invented Cookies?

这不是上帝发明饼干的原因吗?