EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TEICookie ignores the Expires-property?

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
#22423
Posted: 11/09/2012 09:48:08
by Arash Sahami (Basic support level)
Joined: 11/08/2012
Posts: 2

Hello

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?

Regards
Arash

Example:
Code
   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);
#22425
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

Reply

Statistics

Topic viewed 337 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!