File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 10046
    
163

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: 10046
    
163

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jboss session problem