EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TEICookie ignores the Expires-property?

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
Posted: 11/09/2012 09:48:08
by Arash Sahami (Basic support level)
Joined: 11/08/2012
Posts: 2


I can't make TElCookie to compose a cookie with expiration date or parse the expiration date from a cookie string. In the exempel below the expiration date does not exists in resulting string.

Is this a bug?


   TElCookie myCookie = new TElCookie();
         myCookie.Name = "CookieName";
         myCookie.Domain = "CookieDomain";
         myCookie.Value = "CookieValue";
         myCookie.Expires = DateTime.UtcNow.AddHours(1);
         myCookie.Path = "CookiePath";
         string assembleClientCookie = myCookie.AssembleClientCookie(3);
Posted: 11/09/2012 09:59:55
by Eugene Mayevski (EldoS Corp.)

AssembleClientCookie produces a cookie string to be passed to the server.
This function is to be used by the client. Client-side cookies don't contain expiration date - that is server field.

Sincerely yours
Eugene Mayevski



Topic viewed 331 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!