Connecting Tech Pros Worldwide Forums | Help | Site Map

problem with session management

Newbie
 
Join Date: Jun 2007
Posts: 21
#1: Jun 8 '07
Hi everybody,

I am facing a problem with session management.
Actually , whata i am doing is, by clicking on search button in a jsp page, im dispaying some data in table, which is from MS access database.the actual problem is , if i restart the server and run my project(netbeans ide), in that same browser iam able to see the some data in table without clicking on search button.if i close the browser n restart the server, then i am getting normal jsp page w/odata in table. i am getting that data from session, which is setted in a handler.

please help me in this issue.

JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#2: Jun 8 '07

re: problem with session management


I moved an identical post from the Java Articles section to this Java Forum section.
I'll remove this post soon because it's a double post of your other post. The
Java Articles section is for informative articles only; The Java Forum section is
for questions (like yours). Thanks.

kind regards,

Jos
Newbie
 
Join Date: Jun 2007
Posts: 21
#3: Jun 8 '07

re: problem with session management


Quote:

Originally Posted by JosAH

I moved an identical post from the Java Articles section to this Java Forum section.
I'll remove this post soon because it's a double post of your other post. The
Java Articles section is for informative articles only; The Java Forum section is
for questions (like yours). Thanks.

kind regards,

Jos

Hi JosAH,

By mistake i posted two times, sorry for that.Thank you
dmjpro's Avatar
Lives Here
 
Join Date: Jan 2007
Location: India (West-Bengal)
Posts: 2,451
#4: Jun 11 '07

re: problem with session management


Actually this hapens due to the Browsing Session for a Web-Browser.
It would be better to solve ur problem if u send me the code of ur JSP page.
Right?
So please send me the code of that JSP page.

Kind regards,
Dmjpro.
Newbie
 
Join Date: Jun 2007
Posts: 1
#5: Jun 11 '07

re: problem with session management


The Pb is bcoz of that you are setting the session attribute in yr jsp and not removing that u need to remove yr session like
ctx.session.removeAttribute( aatt, "aatt");

I am sure it will help you.

Atul Shukla
dmjpro's Avatar
Lives Here
 
Join Date: Jan 2007
Location: India (West-Bengal)
Posts: 2,451
#6: Jun 11 '07

re: problem with session management


Quote:

Originally Posted by atulshukla12

The Pb is bcoz of that you are setting the session attribute in yr jsp and not removing that u need to remove yr session like
ctx.session.removeAttribute( aatt, "aatt");

I am sure it will help you.

Atul Shukla


Welcome to TSDN.
U r right.
But it is told that the serverr already restarted then there is no need to remove the attribute explicitly because the attributes r unbound when the server restarted or stoped.
Right?

Kind regards,
Dmjpro.
Reply