cancel
Showing results for 
Search instead for 
Did you mean: 

Welcome Back Message when B2C customer logs in for after the first login

Former Member
0 Kudos
70

Hi All,

We are implementing B2C Webshop.When an existing user logs in , we want the system to generate a customised message say " Welcome back...." how do we do this?

Pointers to this would be helpful.

Regards

Sanjib paul

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

The "amazon" dot com and the "ebay" dot coms and all the others do this with the help of client-side cookies only. In your start URL for the B2C, the initial action must read this new cookie, and with the information persisted in the cookie - like the email address (which is the userid for B2C), identify the customer from the existing consumers (Business partner - customer master) and get the customer name etc to welcome the customer.

1. Design a cookie that will stay in the client even after the session - with a long life time -- forever..

2. Add a custom action to read the cookie, read the key information in the cookie, such as the email address that is used to register by the consumer.

3. Use this id to check if the consumer is already registered consumer by simply checking the customer master for this consumer.

4. You can use the existing function module to to the above and get the key information (name).

4. Add this action in the init.do - action chain, and before showing your starting page of B2C. At the end of the action, persist the name in the request context.

5. So, at the end, in the JSP, you can check for this request context variable and say "Welcome (back) Sanjib Paul..." and in small font you add " If you are not Sanjib Paul click here to login / register".... that is what the Amazon and Ebay etc do..

Former Member
0 Kudos

Hello Eashwar

What happens when the Cookies in the browser are deleted?

Regards, Vishal