Hey Niels, here are some tips I've taken out of the readme from my shopping script. Shows how long ago I wrote it that I don't remember, eh? ;-) It might give you some different ideas on how to deal with cookies with server script - both permanent and session.
If you want to really enforce positive that the cartid doesn't go anywhere, on the first page place: <RCScartid = RC@cookie(cartnum)> <RCif RCScartid = NULL><RCScartid = RC@random(100000, 100000000)> <RCXsetcookie name="cartnum" value="RCScartid"><RCendif> <head> If you want them to forever keep their own cart number, you can add persistent="true" to the setcookie. <RCXsetcookie name="cartnum" value="RCScartid" persistent="true"> and on each other page: <RCScartid = RC@cookie(cartnum)> <head> Setting the cart id <RCif RCScartid = NULL><RCScartid = RC@random(100000, 100000000)><RCendif> or use a date to help sort them: <RCif RCScartid = NULL><RC$cidtmp = RC@random(100000, 100000000)> <RCScartid = RC@sprintf("%s%s%s%s", RCEmonth,RCEday,M,RC$cidtmp)><RCendif> ----- Original Message ----- From: "Niels Poulsen" <[EMAIL PROTECTED]> To: "sambar List Member" <[EMAIL PROTECTED]> Sent: Thursday, December 05, 2002 4:08 PM Subject: [sambar] Help Environment Variables {02} ------------------------------------------------------- To unsubscribe please go to http://www.sambar.ch/list/