Hi Naren,

using a globalcookie is the most appropriate in this case I think, just declare it in your site structure.

You can generate the id with the UUID class under JDK 1.5, or use RIFE's UniqueIDGenerator class with 1.4 and 1.5. Then use setCookie and getCookieValue from within your element when appropriate.

Best regards,

Geert


On 4-jan-06, at 13:36, Naren wrote:

Thanks Geert.
I am using your preferred solution. Store the cart content with a unique ID.
To get the unique ID can I use globalcookie or globalvar ?

If yes, then can you suggest some way to achieve using these ?

Thanks
Regards



 * store the cart in your database

This is my preferred approach, when I visit a store I expect my cart to be tied to my account or to my browser. The first one is easy since the account provides the unique id, the latter can be quite easily done by creating a 'shoppingcart' cookie with a unique id. You can then use our
GenericQueryManager to very easily store, update and retrieve your
shopping cart instance that correspond to the id you're using.
This provides your with a scalable, clusterable and persistable approach
to shopping carts.

_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users


--
Geert Bevin                       Uwyn bvba
"Use what you need"               Avenue de Scailmont 34
http://www.uwyn.com               7170 Manage, Belgium
gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users

Reply via email to