Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setMaxInactiveInterval and setMaxAge ?

 
Jesus Doe
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I was wondering if someone could explain the differance between both of these. I would like to know how each works.
-Thanks
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
setMaxInactiveInterval is used to set the session timeout, while setMaxAge is used to set a cookie's life time limit.
 
Jesus Doe
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, if i had a form to submit a username... using maxInterval.. and I submited to a page that would then link to a page and dispaly the name...once i reach the time out the username would become null... but by simply refreshing the name would become accessible again and for maxAge on refresh i would still not be able to access the username once the max life had been reach unless i go back to enter the username.
I think I may be incorrect in my thinking...
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Jesus Doe",
We're pleased to have you here with us in the JSP forum, but there
are a few rules that need to be followed, and one is that proper names are
required. Please take a look at the
JavaRanch Naming Policy and
adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

You can change it here
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic