casy
05-12-2003, 02:30 AM
How to store info like username into a cookie and retrieve later by other pages??
|
Click to See Complete Forum and Search --> : ASP: cookie creation casy 05-12-2003, 02:30 AM How to store info like username into a cookie and retrieve later by other pages?? nudedude 05-13-2003, 02:38 AM This is real easy and there's thousands of good examples on the web. One provided by microsoft is at; http://msdn.microsoft.com/library/en-us/iisref/htm/MaintainingSessionStatewithCookies.asp?frame=true You'll be needing to use lines like the following; Response.Cookies("UserName") = username 'set cookie username = Request.Cookies("UserName") 'read cookie oh, if you are using hosted webspace within a url (not your own domain) then you'll need to set the path of the cookies, but I can't think how you do that without looking. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |