> > "Paul Yunusov" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > On Friday 10 January 2003 04:23 pm, Luc Foisy wrote:
> > > > Is the Cookie defined in the Servlet API permanent by 
> > default? It doesnt
> > > > really say that in the docs. You might be able to assume 
> > that since you
> > > > have a setMaxAge() method, but if you want to change it back to
> > permanent,
> > > > there would be no way to do so (not that I want to, just really
> > wondering
> > > > if its permanent)
> > >
> > > I looked at Cookie.java from jakarta-servletapi-4 and there 
> > is a line that
> > > says:
> > >
> > > private int maxAge = -1; // ;Max-Age=VALUE ... cookies auto-expire
> > >
> > > there. The constructor doesn't interfere with this either. 
> > I don't know if
> > > this is implementation-dependent or established somewhere 
> > in the spec.
> > >
> > 
> > It's part of the spec (section 15.1.1.2 of the 2.3 Spec to 
> be exact).
> > 
> 
> ok, that being said, is there a way to make it permanent?

If I set the maxAge to a huge value it would probably work, unfortunately its in 
seconds, it would be better if it was a date

Now I ponder about the setPath

By default it is null

I am creating the cookie from the context/page of icrm/logon_check.jsp

I am getting the cookies from icrm/logon.jsp

icrm/logon.jsp does not seem to be recieving any cookies, and the getPath() i think is 
indicating the path that the browswer will send the cookie to
what must I provide setPath() in order for it to do so?

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to