aspose file tools*
The moose likes JSP and the fly likes session Attribute's value getting changed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "session Attribute Watch "session Attribute New topic
Author

session Attribute's value getting changed

Utkal Keshari
Greenhorn

Joined: Jul 27, 2006
Posts: 5
in my ADD.jsp page I am setting the Date and time in session attribute .
There are two another pages in which i am getting the date and time .







In my view page If I click refresh then I got the same value. But if I close the page and view it from my menu then new time is given.While I am opening the page from my menu I never hit my ADD.jsp page But still then date and time value is changed .

Please Help me to solve the problem
[ August 03, 2006: Message edited by: Bear Bibeault ]
Ajit Roy
Greenhorn

Joined: Aug 03, 2006
Posts: 2
Hi Utkal,

Definetely your session object has got changed. By looking at the above i am not able to figure out the exact flow of your application.

Are you modfying the session object somwhere else or your Add.jsp is called in between. Hopefully this will help in tracing the problem.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60080
    
  65

"Utkal Utkal",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: session Attribute's value getting changed
 
Similar Threads
Date formatter
Session expires ,user session expires when online
change password
Session problem in NetBeans
Session value is not reflection properly for view the page in next time in post login