voyent
How to Control User Session Expired  XML
Forum Index -> General Help
Author Message
kimoyfreaks

Joined: 02/Oct/2008 00:00:00
Messages: 20
Offline


Hi everyone!
I keep searching on User Session Expired forums and threads but I can't find any explanation on how it can be controlled from appearing. In my application, there is a property in my web.xml like this:

<session-config>
<session-timeout>
300000
</session-timeout>
</session-config>

I don't know if that's the only cause why the User Session Expired appeared. What I want to know is that can this behavior be controlled on the managed bean? What component of the jar holds the property of this and how can i manipulate the use of it? Kindly give me ideas to enlighten me with this matter. I would appreciate too if you can point me to any site that might be helpful for me to profoundly understand this matter. Many thanks to all of you.

Kim
mircea.toma

Joined: 10/Feb/2005 00:00:00
Messages: 323
Offline


I don't quite understand what you are trying to do. You want to configure the application so that its sessions will never expire? Or do you want to not have the "User Session Expired" popup show up?

The timeout period is configured in the standard way in the web.xml file.
[Email]
kimoyfreaks

Joined: 02/Oct/2008 00:00:00
Messages: 20
Offline


Thanks for the reply mircea.toma! Sorry if my question wasn't so clear. Yes, I want to know how to manipulate the user session expire so that I can disabled or enabled it from appearing. Am I correct that the timeout period for the session expired is configured using this expression:

<session-config>
<session-timeout>
300000
</session-timeout>
</session-config>

I also want to know what are the exact reasons why these messages appear:
"User Session Expired", "Network Connection Lost". And after those messages pops up, what will happen to my application? How can I go to back to my login/home page afterwards?

I also want to know where those messages are stored, and what specific jars handles those functions.. Hope you could help me with these matter. Thanks!
mircea.toma

Joined: 10/Feb/2005 00:00:00
Messages: 323
Offline


kimoyfreaks wrote:
.... Am I correct that the timeout period for the session expired is configured using this expression:

<session-config>
<session-timeout>
300000
</session-timeout>
</session-config>
 

Yes, that is correct.

kimoyfreaks wrote:

I also want to know what are the exact reasons why these messages appear:
"User Session Expired", "Network Connection Lost".
 

"User Session Expired" usually tells you that the HTTP session has expired because there was no activity for the amount of time set in web.xml file.

"Network Connection Lost" it occurs when the bridge (Javascript code) doesn't receive back a response in a certain amount of time or the heartbeat mechanism doesn't get back its "pong" responses. See Developers Docs for how heartbeat and timeouts can be configured.

kimoyfreaks wrote:

And after those messages pops up, what will happen to my application?
 

One of the sessions has expired or in the case of "Network Connection Lost" ... nothing.

kimoyfreaks wrote:

How can I go to back to my login/home page afterwards?
 

See "com.icesoft.faces.sessionExpiredRedirectURI" configuration parameter described in 1.7.2 release notes: http://www.icefaces.org/docs/v1_7_2sp1/ReleaseNotes.html#Changes_172

kimoyfreaks wrote:

I also want to know where those messages are stored, and what specific jars handles those functions.
 

Again look into the release docs for "com.icesoft.faces.connectionLostRedirectURI" and "com.icesoft.faces.sessionExpiredRedirectURI" parameters or where enhancement ICE-3016 is mentioned.
[Email]
paulvr

Joined: 12/May/2008 00:00:00
Messages: 121
Offline


Mircea,
Could you give me some hints or pointers where to look or how to debug if I keep getting the Network Connection Interrupted popup? See also http://www.icefaces.org/JForum/posts/list/10866.page. Would be very grateful for any help, Paul.
[Email]
mircea.toma

Joined: 10/Feb/2005 00:00:00
Messages: 323
Offline


You can use Firefox and Firebug add-on to look if the "ping" requests get their corresponding "pong" responses. When one or more "pong" responses are not received then the warning status is raised. After 3 consecutive "pong" responses lost (using default configuration) it is assumed the connection to the server is down and "Network Connection Lost" popup is shown.
You could be seeing the issue that I just fixed, http://jira.icefaces.org/browse/ICE-3897 . If you can, try running your application with the latest build (from Trunk).
[Email]
paulvr

Joined: 12/May/2008 00:00:00
Messages: 121
Offline


Thanks, Mircea, for your promt reply. I'll have a look with Firebug. But I'm not allowed to look at http://jira.icefaces.org/browse/ICE-3897, it tells me I have no permission to look at that page... Could you change that, please, as it might be relevant to me?
Regards, Paul.
[Email]
mircea.toma

Joined: 10/Feb/2005 00:00:00
Messages: 323
Offline


Oops, I didn't realize that the issue is marked as private. I don't have the rights to make it public. See the last comment in the log: http://sventon.icefaces.org/svn/showlog.svn?path=%2ficefaces%2ftrunk%2ficefaces%2fcore%2fsrc%2fcom%2ficesoft%2ffaces%2fwebapp%2fhttp%2fcore%2fReceiveSendUpdates.java&revision=18074&name=repo#

You will have to try running the latest code anyway if you want to confirm that the fixes for ICE-3897 solved your problem too.
[Email]
kimoyfreaks

Joined: 02/Oct/2008 00:00:00
Messages: 20
Offline


Thanks for the reply.. That was helpful! Is there any way where i can disable or stop the user session expired popup from appearing? Thanks!
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team