问题标签 [userid]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
208 浏览

android - 什么是 Android 中的用户 ID?

文档中有一个概念称为“用户 ID”。这是链接

0 投票
5 回答
20331 浏览

google-analytics - 使用 Google Analytics(分析)自定义变量跟踪单个用户

我一直在为我的公司开发一个支持中心,我们需要在个人用户登录时对其进行跟踪。如果可能,我们还希望跟踪详细信息,例如访问的页面和在网站上花费的时间。我可以使用自定义变量跟踪有多少人登录到该站点,但我无法跟踪单个用户。这是我用来尝试获取个人用户 ID 的代码:

我错过了什么/做错了什么。感谢任何反馈。

0 投票
1 回答
2624 浏览

asp.net-mvc - ASP.NET MVC 在创建用户时获取 userId?

我想在注册时获取 UserId

但是发生错误(“对象引用未设置为对象的实例。”)。如何在注册方法中获取 userId?

谢谢。

0 投票
1 回答
667 浏览

c# - 如何从 C# 中的 ASPNETDB.NET 表中获取用户 ID?

您好,谁能帮我如何获取用户的用户 ID?如果我写 User.Identity.Name 我得到用户的名字,如果我写 User.IsInRole 我得到用户的角色。我必须写什么才能获得用户ID?

谢谢你

0 投票
1 回答
1303 浏览

android - Android 在两个应用程序之间共享用户 ID

我有两个游戏,一个是付费的,另一个是免费的。我在付费应用中添加了许多主题。

我想把所有的新东西都整合到我的免费游戏中并一个一个地卖东西,它们都有不同的包名。

有没有其他方法,比如在两个应用程序之间共享用户 ID,而不是将一个应用程序的代码库复制粘贴到另一个应用程序?

我在 AndEngine 中开发了这两款游戏。

0 投票
1 回答
847 浏览

facebook - facebook tab userid 在页面之后为 0

我正在尝试在 facebook 选项卡中获取 facebook 用户 ID,但不知何故这总是返回 0。这是我使用的代码:

Facebook appId 和密码是有效的,我已经尝试过重置密码。我试图在 $fbdata 上做一个 print_r 但这只会返回:

([算法] => HMAC-SHA256 [issued_at] => 1337603346 [page] => 数组([id] => 158282080958121 [liked] => 1 [admin] =>)

)

如您所见,就用户而言,这只会返回一些无用的数据。我也试过 $facebook->getUser() 但这确实返回 0。我的服务器上确实有一个有效的 SSL 证书,我使用了正确的 http 和 https URL,但我不知道为什么我得到一个 0我登录时的用户ID。有什么建议吗?

0 投票
1 回答
3254 浏览

facebook - Getting friend user id, and their photos

I am doing some research into the capacity of Facebook Connect. I have some questions on how a couple of bits of functionality.

  1. Is it possible to fetch a list of all friends of a user?

The idea of this is that a user would log in using my site and then they could search through their friends and select one, and the site would get that friends users id and store it to the sites database.

  1. Getting a photos from that user

After getting the friends user id, would it then be possible to get their photos? Or would the friend need to give the site permission to do that?

I am looking into a site where you can buy a greetings card for a friend, and i wanted to know whether my users would be able to login via facebook, pick a friend, get a photo and then at the time of their birthday it would send them a private message (which i think i know how to do) linking them back to my site where they could view the birthday card and their photo.

Thanks

0 投票
2 回答
537 浏览

jms - ActiveMQ Apollo 是否实现了 JMSXUserID 或类似的东西来帮助跟踪经过身份验证的用户?

我知道 ActiveMQ 支持 JMSXUserID 属性:

http://activemq.apache.org/jmsxuserid.html

我正在尝试使用 Apollo(一个 ActiveMQ 子项目)而不是 ActiveMQ,目前我正试图找出在 Apollo 中复制相同的行为。

我对机制并不挑剔,但简而言之,我需要一些方法来标记来自经过身份验证的用户的每条传入消息,并使用一个标识符让我知道哪个用户发送了哪个消息,但以一种用户无法欺骗的方式设置自己。这基本上正是 ActiveMQ 使用的 JMSXUserID,但我似乎无法弄清楚如何在 Apollo 中做同样的事情。

我错过了什么?

我发现这对谷歌来说特别困难,因为 ActiveMQ 在其每个页面上都链接到 Apollo,所以我的大部分搜索结果都没有帮助。

提前致谢。

0 投票
5 回答
5154 浏览

sql-server - 我应该如何将 Windows 用户 ID 存储在数据库中?

目前我将用户的 Windows 帐户存储为 sql server 中的 nvarchar(10),这是存储用户 ID 的正确方法吗?数据类型应该是什么?或者我什至应该存储用户标识?

0 投票
2 回答
193 浏览

mysql - 使用 MySQL 计算两个表之间的每月用户分数?

我在stackoverflow上找到了很多有用的信息,但是仍然缺少一点点来解决以下问题:

我有两个表usercoresuserpoints像这样:


我能够找出如何使用以下方法计算当前月份的最近用户点和存储的用户点(来自表“userscores”)之间的差异:

但是,此查询仅比较两个表中的用户 ID,并忽略表 userpoints 中存在但表 usercores 中不存在的用户 ID。

应该修改查询,以便新创建的用户 ID(在表 userpoints 中)也被视为分数。


我发现了如何查询以获取表 usercores 中不存在的用户 ID:


现在我必须将两者结合起来,但尝试以下方法不起作用:


任何帮助表示赞赏。