Hi, This sort of problem occurs if and only if the url to which u are redirecting has a different port or the servlet to which u are redirecting is in a different context. If u are redirecting from a servlet whose url is http://localhost:80/customers/servlet/list to a servlet whose url is http://localhost:80/suppliers/servlet/list or https://localhost:443/customers/servlet/list then the session attributes set in the first servlet will not be accessible from the next servlet(where it is redirected). U can test it by redirecting to the servlet with the same url path(ie port and context). ######################### Chetan P Hiremath(Software Engineer) Nuntius Systems(India) Pvt Ltd, Bangalore. http://www.india.nuntius.com 080-658 0484
> -----Original Message----- > From: Rohan Shrinivas Desai [SMTP:[EMAIL PROTECTED]] > Sent: Monday, March 11, 2002 9:51 AM > To: [EMAIL PROTECTED] > Subject: Re: Session problems > > hi guys, > > thanks for all those suggestions about cookies. > infact even i checked the problem machine and i found that the > cookies settings are not disabled. > so the problem still remains unsolved. > > regards, > Rohan > > > -----Original Message----- > From: Ali Chadorbaf [mailto:[EMAIL PROTECTED]] > Sent: Sunday, March 10, 2002 11:22 PM > To: [EMAIL PROTECTED] > Subject: Re: Session problems > > > Hi, > I have exactly same problem with one of our machines. I checked and made > sure > the cookie is on and used .setAttribute to get my object from the session. > but > still same problem. Please response if you got a solution for this. > > > --- Pankaj Chauhan <[EMAIL PROTECTED]> wrote: > > probably cookies in your browser may be disabled, as u said that problem > is > > with your machine only. > > > > -----Original Message----- > > From: A mailing list for discussion about Sun Microsystem's Java Servlet > > API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Rohan > > Shrinivas Desai > > Sent: Thursday, February 28, 2002 4:55 PM > > To: [EMAIL PROTECTED] > > Subject: Session problems > > Importance: High > > > > > > Hi All, > > > > i have a serious problem in my applicaiton . > > > > The work flow is typically like > > > > After login in, A Login Servlet validates the user and sets two > > variables like user_id,role in to session ( using session.putValue( ) > > method ) > > and then depending on role the user is redirected to a new > servlet > > redirection is done using reponse.sendRedirect( ) method > > > > Now my problem is with a single machine. > > This problem machine is a laptop and whenever any user logs in , > a > > loss of session occurs. > > > > i tried traking the the flow and i found that session is intact > till > > the point the servlet is redirected. > > once in the new servlet, the session is null. > > > > this problem is only with that machine. > > can anybody please suggest any possible causes ...or some > settings > > with the machine related to session. > > or any settings with IE 5.5 ( the version of browser in that > machine > > ) > > > > this is a persistent problem and is there for long. > > i will appreciate any kind of help > > thanks > > Rohan > > > > > > > > DISCLAIMER: Information contained and transmitted by this E-MAIL is > > proprietary to MASCOT SYSTEMS LTD and is intended for use only by the > > individual or entity to which it is addressed, and may contain > information > > that is privileged, confidential or exempt from disclosure under > applicable > > law. If this is a forwarded message, the content of this E-MAIL may not > have > > been sent with the authority of the Company. If you are not the intended > > recipient, an agent of the intended recipient or a person responsible > for > > delivering the information to the named recipient, you are notified that > any > > use, distribution, transmission, printing, copying or dissemination of > this > > information in any way or in any manner is strictly prohibited. If you > have > > received this communication in error, please delete this mail & notify > us > > immediately at [EMAIL PROTECTED] Before opening attachments, > > please scan for viruses > > > > > __________________________________________________________________________ > _ > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > > of the message "signoff SERVLET-INTEREST". > > > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > > Resources: http://java.sun.com/products/servlet/external-resources.html > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > > > > __________________________________________________________________________ > _ > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > > of the message "signoff SERVLET-INTEREST". > > > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > > Resources: http://java.sun.com/products/servlet/external-resources.html > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > > > > __________________________________________________ > Do You Yahoo!? > Try FREE Yahoo! Mail - the world's greatest free email! > http://mail.yahoo.com/ > > __________________________________________________________________________ > _ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > > DISCLAIMER: Information contained and transmitted by this E-MAIL is > proprietary to MASCOT SYSTEMS LTD and is intended for use only by the > individual or entity to which it is addressed, and may contain information > that is privileged, confidential or exempt from disclosure under > applicable > law. If this is a forwarded message, the content of this E-MAIL may not > have > been sent with the authority of the Company. If you are not the intended > recipient, an agent of the intended recipient or a person responsible for > delivering the information to the named recipient, you are notified that > any > use, distribution, transmission, printing, copying or dissemination of > this > information in any way or in any manner is strictly prohibited. If you > have > received this communication in error, please delete this mail & notify us > immediately at [EMAIL PROTECTED] Before opening attachments, > please scan for viruses > > __________________________________________________________________________ > _ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
