This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes jboss session problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "jboss session problem" Watch "jboss session problem" New topic
Author

jboss session problem

sreenivas arumilli
Greenhorn

Joined: Jun 09, 2011
Posts: 12
HI All,

We had a problem in sessions. We logged in and logout and then again we logged in .After that if we click any link in the site ...it was loading with new session.

Please give me some inputs on it to resolve this.

Regards,
Sreenivas A.
sreenivas arumilli
Greenhorn

Joined: Jun 09, 2011
Posts: 12
please provide any inputs
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9343
    
111

sreenivas arumilli wrote:HI All,

We had a problem in sessions. We logged in and logout and then again we logged in .After that if we click any link in the site ...it was loading with new session.

A logout essentially is a session invalidation. So logging in again is obviously going to create a new session. That's the expected behaviour. What's the problem with that?

[My Blog] [JavaRanch Journal]
sreenivas arumilli
Greenhorn

Joined: Jun 09, 2011
Posts: 12
Yup..But after logout..If I login again and then If i click any link in the site...the session was resseted And user was thrown out.

Regards,
Sreenivas A.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9343
    
111

sreenivas arumilli wrote:the session was resseted And user was thrown out.

Regards,
Sreenivas A.


You'll have to explain more on what you mean by that. Like I said, a logout implies a session invalidation and a login implies a new session.
sreenivas arumilli
Greenhorn

Joined: Jun 09, 2011
Posts: 12
Thanks for your response.


When we just launch a site(at this point not logged in) then a new session is created in jboss..when I login to my site and then I logged out(I haven't making any session invalidation) ..So still we are keeping the same session.

So we when we again logged in to site it was able to login with the same session id. but after the login if we click any link in the site then suddenly the session id was changing to new one as result of new one our user was asking for login again.


Regards,
Sreenivas A.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jboss session problem
 
Similar Threads
Form Reset
Doubt in Session Time out.
Problems with lost sessions
Session end
request.getSession(false)