• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic