This is a migrated thread and some comments may be shown as answers.

false cookie expire time

1 Answer 38 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Doga Ercan
Top achievements
Rank 1
Doga Ercan asked on 23 Jan 2013, 08:38 AM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 25 Jan 2013, 10:30 AM
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
Tags
General Discussions
Asked by
Doga Ercan
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or