Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session is not maintaining some times?

 
SUDA VIJAYA KUMAR
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
SUDA VIJAYA KUMAR
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Can you post your code here.It might be helpful
 
raj sekhar
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Silly reply too !
Just <cntl>c on your code and <cntl>v on here. It works
Thanks
 
Bosun Bello
Ranch Hand
Posts: 1510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
SUDA VIJAYA KUMAR
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic