• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF Session Expires on Login Page (how can I prevent it?)  RSS feed

 
Lincoln Baxter
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

I've got some pages in JSF that the user does not need to be logged in to use, but they are still getting timed out and receiving ViewExpiredExceptions.

Is there a good way to make a page independent of the JSF session data? I want users to be able to leave the page open forever and come back and still have a working page.

Aka, I don't want the user to leave their browser on the login page, have the view expire while they are away, come back and type in their password just to be redirected to the login page and have to retype everything again. That just doesn't make sense to me.

Any help would be appreciated, thanks.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Edit: answer removed. Crossposted at the Sun forum: http://forums.sun.com/thread.jspa?messageID=10396374

In the future please notify about crossposts, before others discover that you're wasting their time.

[ August 25, 2008: Message edited by: Bauke Scholtz ]
[ August 25, 2008: Message edited by: Bauke Scholtz ]
 
Lincoln Baxter
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One solution: Use meta tag to refresh page after session timeout:

<meta http-equiv="refresh"
 
Lincoln Baxter
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry about that. Remembered the SUN forum after I posted this. Won't happen again.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Lincoln Baxter:
One solution: Use meta tag to refresh page after session timeout:

<meta http-equiv="refresh"


Yes, I already suggested this solution at the Sun forum.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!