I check for session value on jsp page and its null,so session expires and it shows the related page asking for login again,online.But on local host it works fine.
I am using a cache manager class,in it caching attribute value of "loginid",which i check for session expires or not in jsp.But problem is how do i get "loginid" which i take from jsp
in servlet i use setAttribute and set searchcategory taken from cacheManager.Above code worked fine,solved my problem of online search.but i want single "loginid" value from Servlet which i took from jsp shown above, in cacheManager.java
so that i can
Correct me if i am wrong,anywhere.
Joined: Feb 23, 2009
So how to i get the value from servlet to .java class,and set attribute successfully so as to pass it to my jsp.
Joined: Feb 23, 2009
hi,i have got the values from cacheManager and set it in session.setAttribute.The "loginid" which i check for session expired.But User still cannot maintain session when website runs online.
Help will be greatly appreciated.
supriya riya wrote:I am using a cache manager class,in it caching attribute value of "loginid",which i check for session expires or not in jsp.But problem is how do i get "loginid" which i take from jsp
Your logic is not that clear to me. How you obtain the session for a client?
In loginhandler.Values on this servlet come from index.jsp.
this is section handling particular user logins.
In adminhome.jsp for admin login.It logs in sucessfully.But after logging in when i click other links like update admin etc,it shows session expired.
Problem is on localhost my user sessions are maintained,but when i deploy war file online it does not maintain user session.It goes to session expired page when i click any other jsp page link.
Do i need to post more details.
Perhaps you have enabled Session-Cookies for Localhost, but not for the Remote-System in your browser-settings.
In your Source-Code, you do not have any statements for URL-Rewriting when cookies are disabled, so without session-cookies your application will lose the session every time the user clicks on a link.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Session expires ,user session expires when online