http://pic.dhe.ibm.com/infocenter/wchelp/v7r0m0/topic/com.ibm.commerce.admin.doc/tasks/tsecremem_cd.htm
Securing > Session management > Using cookies for session management > Persistent sessions (Remember Me)
Feedback
Enabling persistent sessions in a single store
Persistent sessions are particularly useful in consumer direct stores, although it is possible to enable B2B direct stores with persistent sessions as well. The steps to enable persistent sessions in the stores only differ in the locations and names of the files that need to be altered. In both cases, the store's Logon and UserRegistrationAdd forms require changes. The steps must be performed for all the stores in the site that need persistent sessions.
Before you begin
Ensure that you have completed the following task:
Enabling persistent sessions globally.
Procedure
In your store's Logon form and the UserRegistrationAdd form, add the rememberMe parameter as shown in the following example:
<form method="post" name="Logon" action="Logon" id="Logon">
...
<input type="checkbox" name="rememberMe" value="true">
Remember Me </input>
...
</form>
Modify the URL parameter of the Logon form from
<input type="hidden" name="URL"
value="OrderItemMove?page=account&URL=OrderCalculate%3FURL%3DLogonForm"
id="WC_Accouid="WC_AccountDisplay_FormInput_URL_In_Logon_1" />
to
<c:choose>
<c:when test="${!empty WCparam.URL}">
<input type="hidden" name="URL"
value="${WCparam.URL}"
id="WC_AccountDisplay_FormInput_URL_In_Logon_1" />
</c:when>
<c:otherwise>
<input type="hidden" name="URL"
value="OrderItemMove?page=account&URL=OrderCalculate%3FURL%3DLogonForm"
id="WC_AccountDisplay_FormInput_URL_In_Logon_1" />
</c:otherwise>
</c:choose>
Note: The value of the id attribute will differ between stores, but the structure of the code fragment will remain consistent.
Optionally, If you want the partially authenticated user's logon ID to be pre-populated in the user name entry field of the logon form, change the following code:
<input size="20" name="logonId" value=""
id="WC_AccountDisplay_FormInput_logonId_In_Logon_1" />
to:
<c:choose>
<c:when test="${!empty param.logonId}">
<input size="20" name="logonId" value="${param.logonId}"
id="WC_AccountDisplay_FormInput_logonId_In_Logon_1" />
</c:when>
<c:otherwise>
<input size="20" name="logonId" value=""
id="WC_AccountDisplay_FormInput_logonId_In_Logon_1" />
</c:otherwise>
</c:choose>
Note: The value of the id attribute will differ between stores, but the structure of the code fragment will remain consistent.
Add the following configuration fragment to the WebSphere Commerce Struts custom configuration file for the Stores module:
<global-forwards>
<forward className="com.ibm.commerce.struts.ECActionForward"
name="RememberMeLogonFormView/
storeID"
path="/UserArea/AccountSection/LogonSubsection/LogonSetup.jsp">
<set-property property="credentialsAccepted"
value="
storeID:
credAccept" />
</forward>
</global-forwards>
<action-mappings
type="com.ibm.commerce.struts.ECActionMapping">
<action path="/RememberMeLogonFormView"
type="com.ibm.commerce.struts.BaseAction">
<set-property property="https" value="
storeID:1" />
<set-property property="credentialsAccepted" value="
storeID:
credAccept" />
</action>
</action-mappings>
Where:
storeID
The store ID of the store for which you are enabling the persistent session. This value can be found in the STORE table.
credAccept
P to mean that remembered registered users are entitled to accessing this resource without authenticating themselves, or any other value (including NULL) to mean that they must authenticate themselves.
Update actions for all the URLs that remembered registered users are entitled to access without authenticating themselves by setting their credentialsAccepted property to storeID
.
Update the PERSISTENTSESSION column in the STORE table in order to enable the persistent session:
Open a session to your database.
Find the STORE_ID of the store you are enabling persistent session for by entering the following SQL statement into the session:
SELECT * FROM STORE
Enter the following SQL statement into your database:
UPDATE STORE SET PERSISTENTSESSION =
configValue WHERE STORE_ID =
store
ID
Where:
storeID
The ID of the store for which you are enabling persistent session.
configValue
A value from the following list that represents the appropriate configuration:
0
The rememberMe function is disabled for registered customers and guest customers. This is the default value.
1
The rememberMe function is enabled for registered customers only.
2
The rememberMe function is enabled for guest customers only.
3
The rememberMe function is enabled for registered customers and guest customers.
Related concepts:
Users
Session management
Persistent sessions (Remember Me)
Personalization ID
time stampLast updated: 18 April 2013 Tweet
Topic URL: http://pic.dhe.ibm.com/infocenter/wchelp/v7r0m0/topic/com.ibm.commerce.admin.doc/tasks/tsecremem_cd.htm Share
分享到:
相关推荐
在IT领域,服务导向架构(SOA)与WebSphere Messaging的结合是实现企业级系统集成、提高业务灵活性和响应性的关键策略。本文将基于提供的文件信息,深入探讨SOA概念、WebSphere Messaging产品系列,以及如何利用它们...
Agile Application Security Enabling Security in a Continuous Delivery Pipeline 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
Agile Application Security Enabling Security in a Continuous Delivery Pipeline 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或...
Agile Application Security Enabling Security in a Continuous Delivery Pipeline 英文azw3 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
【Enabling ABAP in Eclipse】是一项让ABAP开发者能够在Eclipse集成开发环境中进行开发的工作。这一功能的引入为ABAP程序员提供了更为现代化和灵活的开发工具,与传统的SAP Development Workbench相比,Eclipse提供...
在虚拟化数据中心中实现交互式任务的关键在于设计与传统批处理任务相协调的调度策略,这一议题由John Paul Walters、Bhagyashree Bantwal 和 Vipin Chaudhary 在他们的研究“Enabling Interactive Jobs in ...
区块链技术是一种分布式账本技术,它通过智能地融合对等网络(P2P)、密码学、分布式共识协议和智能合约等技术,构建了一个可在不信任的网络节点之间建立信任的环境。随着其不可变性、透明性和共识的特性,区块链技术...
在这一背景下,“Enabling Green Networking with a Power Down Approach in LEO Satellite Constellations”这篇文章探讨了如何通过降低LEO卫星星座的能耗,实现绿色网络。 文章首先指出,根据对使用Iridium NEXT...
"Enabling Confidential Computing in Cloud with Intel SGX and Library OSes"这个主题探讨了如何利用Intel Software Guard Extensions (SGX)技术和Library Operating Systems(库操作系统)来提升云环境中的数据...
### OpenFlow:校园网络中的创新推动者 #### 概述 《OpenFlow:在校园网络中推动创新》一文由多位来自顶尖大学的研究员共同撰写,包括斯坦福大学的Nick McKeown、Guru Parulkar,华盛顿大学的Tom Anderson,...
### Linux Kernel In A Nutshell: Key Insights and Concepts The book "Linux Kernel In A Nutshell" by Greg Kroah-Hartman is a comprehensive guide designed to provide a high-level overview of the Linux ...
In particular, we identify a range of application fields, showing how it constitutes a universal enabling technology for both smart vehicles and cooperative systems, and naturally sets out a program ...
### C# 12 in a Nutshell:The Definitive Reference #### 1. Introducing C# and .NET **Object Orientation** C# is an object-oriented programming (OOP) language, which means that it structures code ...
ABOUT THE TECHNOLOGYHTML5 is not a few new tags and features added to an old standard—it's the foundation of the modern web, enabling its interactive services, single-page UI, interactive games, and...
HTML5 is not a few new tags and features added to an old standard—it’s the foundation of the modern web, enabling its interactive services, single-page UI, interactive games, and complex business ...
Recent Advances in Networking,网络研究进展 ,来自ACM SIGCOMM,2013,回顾了网络领域的最新研究进展. 包括以下内容 1. Internet Topology ...9. Enabling Multihop Communication in Spontaneous Wireless Networks
Density Functional Theory: A Practical Introduction offers a concise, easy-to-follow introduction to the key concepts and practical applications of DFT, focusing on plane-wave DFT. The authors have ...
**应用链接启用 (Application Link Enabling, ALE)** ALE 是 SAP 系统中的一个关键技术,用于在不同组件、模块或系统之间实现数据的实时、自动传输。在本例中,ALE 被用于在一个 SAP 系统内连接两个公司(A 和 B)...