File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Session is not maintaining some times? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session is not maintaining some times? " Watch "Session is not maintaining some times? " New topic
Author

Session is not maintaining some times?

SUDA VIJAYA KUMAR
Ranch Hand

Joined: Sep 26, 2001
Posts: 40
Hi all!
I am using sessions for my servlet in my web application.
If the user id and password is same it is maintaining session.
I am using session.put() and session.get()and Session.setinactivintervel() is 30 min.
Most of the times my session is maintaining ,but some times it is loosing session.
Could any body tell me the reasons or any other additional code/ information ,I need to write.
Pl.hlp. me
Thanks in advance
vijay
SUDA VIJAYA KUMAR
Ranch Hand

Joined: Sep 26, 2001
Posts: 40
Hi all,
Can anybody please reply to my query.
I required it urgently
Thanks inadvance
vijay
Originally posted by SUDA VIJAYA KUMAR:
Hi all!
I am using sessions for my servlet in my web application.
If the user id and password is same it is maintaining session.
I am using session.put() and session.get()and Session.setinactivintervel() is 30 min.
Most of the times my session is maintaining ,but some times it is loosing session.
Could any body tell me the reasons or any other additional code/ information ,I need to write.
Pl.hlp. me
Thanks in advance
vijay

Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

Which App Server are you using? Maybe you've configured something wrong?
Also... try using session.setAttribute() and session.getAttribute() -- putValue() and getValue() have been deprecated.
------------------
- Jessica Bradley
HP Bluestone


- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
SUDA VIJAYA KUMAR
Ranch Hand

Joined: Sep 26, 2001
Posts: 40
Hi
Thanks for your reply.
We are using websphere3.5
Thanks
bye
Originally posted by Jessica Bradley:
Which App Server are you using? Maybe you've configured something wrong?
Also... try using session.setAttribute() and session.getAttribute() -- putValue() and getValue() have been deprecated.

Manjunath Subramanian
Ranch Hand

Joined: Jul 18, 2001
Posts: 236

Can you post your code here.It might be helpful
raj sekhar
Ranch Hand

Joined: Oct 16, 2001
Posts: 117
Silly reply too !
Just <cntl>c on your code and <cntl>v on here. It works
Thanks
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
I am not sure what the deal is with your environmtnt. This is a copy/paste from my VA 3.5
Map aMap = new HashMap();

Bosun


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
SUDA VIJAYA KUMAR
Ranch Hand

Joined: Sep 26, 2001
Posts: 40

My visualAge is in separate sub Lan and java ranch(I.E) is in seperate Lan.
vijay
Originally posted by Bosun Bello:
I am not sure what the deal is with your environmtnt. This is a copy/paste from my VA 3.5
Map aMap = new HashMap();

Bosun


[This message has been edited by SUDA VIJAYA KUMAR (edited November 14, 2001).]
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

Unfortunatley Vijay -- It's going to be near impossible to find thr problem with your code with out actually seeing your code.
SUDA VIJAYA KUMAR
Ranch Hand

Joined: Sep 26, 2001
Posts: 40
Hi,
In my servlet side my code is

session.putValue(variable,value)
and after putting value
Hashtable ht=session.getValue(varaiable)

after storing in hashtable ,I am writing into another hashtable and sending to applet.

In applet side I am reading that hashtable.
Thanks
vijay

QUOTE]Originally posted by Jessica Bradley:
Unfortunatley Vijay -- It's going to be near impossible to find thr problem with your code with out actually seeing your code.

[This message has been edited by SUDA VIJAYA KUMAR (edited November 16, 2001).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session is not maintaining some times?