Forums Register Login

How to handle session expired with JSF

+Pie Number of slices to send: Send

I use JSF 1.2 and richfaces 3.3 in my application. I have 2 different login pages. Suppose the user logs in through one of the login page and if the session expires, i have handled it through viewExpiredException in web.xml. I display a page where the user will be notified that the session is expired and is asked to click on a link to go to login page. When the user clicks on the link, i need to redirect the user to the same login page where he logged in. Please suggest me how can i know that the user has logged in from which login page.?
+Pie Number of slices to send: Send
If you're doing your own login code instead of using what J2EE provides, you're already in trouble, but I'll skip the rant.

View Expired and Session Expired are two very, very different things. A view may expire without the session being expired - meaning that the user is still logged in. I suppose the reverse is true, although a View referencing an expired session might have problems of its own.
+Pie Number of slices to send: Send
i am invalidating the session when the view expires. That way session expired is handled. But is there any way i can have solution to my problem?
In the renaissance, how big were the dinosaurs? Did you have tiny ads?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1356 times.
Similar Threads
BACK BUTTON CHECK
Keep the user signed in even after browser closes
Redirect to login in ajax...
login example using jsf
help with jsp redirection after timeout
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 02:02:48.