Why -1 returned from session.getCreationTime() ?

R

Rick

When testing my struts code using MockStrutsTestCase the HttpSession
method getCreationTime() returns -1. A negative value suggests some
kind of failure but I can't find any reference to this value in the
API doc. Is it possible to have a session that has a negative creation
time? If so how can this happen?

When I run my code as a regular webapp under Tomcat 5.0.18 all runs
ok.

Rick
 
R

Rick

(e-mail address removed) (Rick) wrote in message
Turns out MockStrutsTestCase uses its own imlpementation of
HttpSession.
In servletunit.HttpSessionSimulator both getCreationTime() and
getLastAccessedTime() always return -1 for a valid session.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top