|
Title: Cookies via fastrobbie Post by: rdivilbiss on December 04, 2007, 06:22:21 PM As you can guess I'm a little bit stuck. More like wrapped in confusion. Website has progressed but I cant seem to pull off one of the last steps. Cookie control. I have cookies reading in and out of a database i.e. www.kohchangbookingandinformation.com/BillingSignIn.asp without a password because it's going to Paypal and Paypal handles all that and I'm trying to make it simple. Then Customer detail in http://www.kohchangbookingandinformation.com/BillingandShipping_D.asp. Next I have a Edit routine for purchases in www.kohchangbookingandinformation.com/Robby_Hard.asp before it goes to Paypal so you can see what I'm up to. My question :
How do I setup a cookie system that recognizes an old customer throughout the site that has previously setup a dbf record via member BillingSignIn/BillingandShipping_D.asp. I Hope this is not too much of an imposition and hope to hear from you soon. Sincerely Robby Title: Re: Cookies via fastrobbie Post by: rdivilbiss on December 04, 2007, 06:27:05 PM With ASP you can use the response.Cookies to write a cookie.
Response.Cookies("Customer") = Session.SessionID Response.Cookies("Type").Expires = "July 31, 2037" Assuming session id was sufficiently random, that should work. Upon returning to a a page, Request.Cookies("Customer") should return the past SessionID which of course should have been stored in your databasse and used as the key to look up the customer data. If there is no cookie, you'll need the customer to provide their user id and password to retrieve their profile. If the is a cookie, don't perform any sensitive action without first asking for their password.
Powered by SMF 1.1 RC2 |
SMF © 2001-2005, Lewis Media
Joomla Bridge by JoomlaHacks.com |