• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Session is not maintaining some times?

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Can you post your code here.It might be helpful
 
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Silly reply too !
Just <cntl>c on your code and <cntl>v on here. It works
Thanks
 
Ranch Hand
Posts: 1514
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic