Channel 9 Home
Search Channel 9
Tech Off Post
Single Post Permalink
Yeah it seems to be a situation of do what I say not as I do (from documentation):
The time of day (on the client) at which the cookie expires.
Then they turn around show:
DateTime dt = DateTime.Now;
TimeSpan ts =
MyCookie.Expires = dt.Add(ts);
DateTime.Now being the time on the server. So the right hand isn't talking to the left hand:)
So which is right? The text or the code?