销售人员中的会话管理

发布于 2024-11-13 06:15:42 字数 156 浏览 4 评论 0原文

我们正在尝试使用force.com 网站构建一个简单的网站。这里用户登录到网站,需要通过移动到不同的VF 页面来执行不同的操作。

我们面临维护特定用户会话的问题。我们需要有关如何维护特定用户的会话的帮助。

请给予您的帮助。请提供任何示例代码。

谢谢。

We are trying to build one simple website using force.com sites.Here User logged into website and need to perform different actions by moving to different VF pages.

We are facing a Problem to maintaine Session of particular user. We need help regarding how to maintaine session for particular user.

Kindly give your help. Please provide any sample code.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

﹉夏雨初晴づ 2024-11-20 06:15:43

你不能;)

想一想,你可以在数据对象中存储用户名/密码,如果它们允许你登录并维护该用户的会话并使用它来浏览顶点页面和内置表单,你为什么要购买一个销售人员许可证?您只需一份管理许可证和一个站点 URL 即可操作拥有 1000 名员工的设备。因此,Salesforce 不允许您进行会话控制,但当您购买并支付许可证费用时,它会授予您会话控制权。

对于网站,您必须购买客户门户许可证或基于批量的大批量客户门户集,然后使用这些将联系人“提升”为登录用户以上许可证。然后,当该用户登录站点时,它就有自己的会话。

You can't ;)

Think about it, you can store usernames/passwords in your data objects and if they allow you to login and maintain a session for that user and use it to walk around apex pages and builtin forms why would you buy a salesforce license? You could operate a 1000 employees rig with just one administrative license and a site URL. For that reason salesforce does not allow you session control, it grants you one when you buy and expense a license.

For sites, you have to purchase either Customer Portal license or volume-based High Volume Customer Portal set and then use those to "promote" a contact into a login user with the above license. Then, when that user logs into site it has its own session.

傻比既视感 2024-11-20 06:15:43

本文档http://wiki.developerforce.com/index.php/Authenticating_Users_on_Force.com_Sites 可能会有很大帮助。

本教程向您展示如何对 Force.com 站点上的用户进行身份验证。它提供了身份验证所需的客户门户的描述,并向您展示如何设置此类站点和流程以允许站点访问者成为经过身份验证的用户。

This document http://wiki.developerforce.com/index.php/Authenticating_Users_on_Force.com_Sites might be of great help.

This tutorial shows you how to authenticate users on Force.com Sites. It provides a description of Customer Portal, which is needed for the authentication, and shows you how to set up such a site and process to allow site visitors to become authenticated users.

_蜘蛛 2024-11-20 06:15:43

客户门户上的要点是正确的,您必须为这些许可证付费。如果您在 Force.com 网站上建立自己的身份验证,而 salesforce.com 发现他们会非常不高兴。也就是说,您仍然可以使用 cookie (http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_sites_cookie.htm) 来完成此操作,但它并不完美,因为它是客户端。

不过,我强烈建议您避免这种方法。您最好在另一个平台(Google App Engine 或 Heroku)上构建 UI 层,并通过该 UI 使用在 Force.com 平台上创建的 Web 服务。

The points on customer portal are correct, and you have to pay for these licences. If you build your own auth on Force.com Sites and salesforce.com finds out they'll be very unhappy. That said you can still do it using cookies (http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_sites_cookie.htm) but it's not perfect because it's client-side.

I highly recommend that you steer clear of this approach though. You're better off building your UI layer on another platform (Google App Engine or Heroku) and using web services created on the Force.com platform through that UI.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文