Hi,
[I've copied this to the user list]
Sorry - don't use JSP that much - have you tried accessing the site
remotely - ie does the problem only occur when the site is on the
same machine as the client?
Chris
--- Mark Orciuch <[EMAIL PROTECTED]> wrote:
> Reply-to: <[EMAIL PROTECTED]>
> From: "Mark Orciuch" <[EMAIL PROTECTED]>
> To: "Chris Kimpton" <[EMAIL PROTECTED]>
> Subject: RE: Automatic logon feature
> Date: Wed, 29 May 2002 10:01:19 -0500
>
> Chris,
>
> Sorry, still doesn't work. I tried the following test code from a
> .jsp:
>
> Cookie test = new Cookie("hello", "there");
> test.setPath("/");
> test.setMaxAge(10000);
> test.setDomain("."+data.getServerName());
> test.setVersion(0);
> test.setSecure(false);
> response.addCookie(test);
> Cookie[] cookies = data.getRequest().getCookies();
> if (cookies != null) {
> for(int c=0; c < cookies.length; c++) {
> try {
> %>
> <TR>
>
> <TD><B><%=cookies[c].getName()%></B>=<%=cookies[c].getValue()%>,
> domain=<%=cookies[c].getDomain()%>
> , comment=<%=cookies[c].getComment()%>, max
> age=<%=cookies[c].getMaxAge()%>, path=<%=cookies[c].getPath()%>,
> server=<%=data.getServerName()%></TD>
> </TR>
> <%
> } catch (Exception e1) {
> }
> }
> }
> %>
>
> The URL was http://s2kmcomtst01.cgs.com/portal/template/test.jsp.
> NO cookie
> was generated. If I move the .jsp to the root and invoke it as
> http://s2kmcomtst01.cgs.com/test.jsp, the cookie IS generated. It
> can't be a
> JSP thing because base Jetspeed uses Velocity and and it still
> doesn't seem
> to work for me.
>
> I'm confused because you're obviously using that feature on your
> http://www.soccer2002.org.uk/ portal and it works.
>
> Best regards,
>
> Mark C. Orciuch
> Next Generation Solutions, Ltd.
> e-Mail: [EMAIL PROTECTED]
> web: http://www.ngsltd.com
>
>
> -----Original Message-----
> From: Chris Kimpton [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 29, 2002 5:44 AM
> To: Jetspeed Users List; [EMAIL PROTECTED]
> Subject: Re: Automatic logon feature
>
>
> Hi,
>
> --- Mark Orciuch <[EMAIL PROTECTED]> wrote:
> > I enabled automatic logon in jr.props:
> automatic.logon.enable=true.
> > If I
> > check "Remember me on this computer", I expected a cookie to be
> > created on
> > my machine but it isn't. Cookies created via JavaScript or by
> > accessing
> > other sites work fine. I am running both sever and client on
> Win2K.
> > Is there
> > something that I'm missing here?
>
> How are you accessing your site?
>
> Is it via something like http://localhost...
>
> The problem with this, is that somewhere (not sure if its client or
> server) it needs a larger (? fuller ?) name for the host.
>
> That is, if you stick an entry in HOSTS file, mapping (for example)
> mypc.localhost.com to 127.0.0.1 and then access the site using this
> name, ( http://mypc.localhost.com... ) the cookies should work.
>
> Regards,
> Chris
>
> =====
> ------------------------------------------
> http://www.soccer2002.org.uk - The Game is On!
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
=====
------------------------------------------
http://www.soccer2002.org.uk - The Game is On!
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>