I wanna now how i can give a custumer a own generated id and put it in a cookie so the custumer always has the same id when he/she comes to my page... can some one help me?
(btw... the id should be stored in a database to) =)
If you have an autonumber filed in a database that is generated when you enter customer details then you can use that as an output parameter.
Another option is to use an Application variable and then read the start value from a database when the Application starts in the
Code:
Application_OnStart
event procedure in the Global.asa and then write the current value back to the database in the
Code:
Application_OnEnd
event procedure in the Global.asa.
To maintain consistancy you would issue the following code in your ASP page when issuing the user id:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.