On Monday 11 March 2002 8:13 am, Chetan Hiremath P wrote:
> 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).

cookies are only valid for the domain specified when they are sent

so this problem often occurs if you log into the site using a short form on
the machine name - set a cookie and  later redirect to the fully qualified
domain name (also true if there is more thane one fqdn for the server)

(I'm comming to servlets from php,perl - so I'm not sure if you can access
the same servlet context from these different hostnames...)

--

Sean

___________________________________________________________________________
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

Reply via email to