false cookie expire time

2 posts, 1 answers
  1. Doga Ercan
    Doga Ercan avatar
    21 posts
    Member since:
    Jul 2011

    Posted 23 Jan 2013 Link to this post

    Hi,

    I have used the code example in test studio online documentation

    I changed the line 

    Log.WriteLine(cookie.Name);

    as 
    Log.WriteLine(cookie.Name + " expires " + cookie.Expires);

    but it always print 01.01.0001 00:00:00 as expire time, indeed it is not.

    Thanks

    Ercan
  2. Answer
    Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 25 Jan 2013 Link to this post

    Hello Ercan,

    Unfortunately from the client-side you can only access the name and the value of the cookie. It is not possible to get any additional info that can be set in a cookie (i.e. expiration date). Please read this forum thread for more information. 

    All the best,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top