[pmwiki-devel] ZAPcart question...

Ben Stallings ben at interdependentweb.com
Tue Mar 20 10:08:12 CDT 2007


Dan wrote,
> In ZAPcart, the shopping cart stores their order information in a wiki
> page connected to their authid.  However, I don't want to require
> users to create a full-fledged members account to use the store.  So
> I'm thinking I would log them in under a temporary AuthId keyed to
> some 10 digit random number or maybe Guest131224232.

I suggest using the session ID.  Since ZAP uses cookies extensively, 
anybody who's using ZAPcart will have a session ID, which is 
sufficiently long and random for your purposes, and has the added 
benefit of expiring along with the cookie.  print_r($_SESSION) to see 
it.  --Ben



More information about the pmwiki-devel mailing list