SQLDude
Starting Member
41 Posts |
Posted - November 24 2009 : 15:28:22
|
Here is a little Stupid Cookie Trick which can be very helpful if you want to READ the Expiration Date of a Cookie:
(And you thought there was no way to Read a Cookie Expiration Date, too, right?
Just make all your cookies have a Cookie Keys collection like this:
Response.Cookies("5000Watches") = Request.Servervariables("REMOTE_ADDR") Response.Cookies("5000Watches").expires = Now() + 1 Response.Cookies("5000Watches").domain = "5000Watches.com" Response.Cookies("5000Watches")("Expiration") = Now() + 1 Response.Cookies("5000Watches")("IPAddress") = Request.Servervariables("REMOTE_ADDR") Response.Cookies("5000Watches")("UserAgent") = Request.Servervariables("USER_AGENT")
... then you can READ this parallel universe Expiration Date by doing this....
Response.Write Request.Cookies("5000Watches")("Expiration") OR
dtExpireDate = Request.Cookies("5000Watches")("Expiration")
And all along everyone has been telling me that there is NO WAY to Read a Cookie's Expiration Date....
This year is my 10th Anniversary as a VPASP consultant. Suggestions made to Howard Kadetz which were adopted as part of the core VPASP system include the VeriSign Gateway which I actually debugged and validated, the Snitz Forums Application which you are using right now, and ChiliSoft ASP for MySQL and Linux. I have been developing both ASP, ASP.NET and SQL Server Applications for the same timeframe and my clients have included: United HealthCare, Bank of America, Sirius Satellite Radio, Sovereign Bank, Boston University Medical School, EMC Corp., TJMaxx Stores and several other Fortune 100 or Fortune 500 Companies. |
|
|