Hi Peter

Thanks for the response. The context path "hack" works when logging out. But
i still have a problem when i want to auto login.

I log in with an user. Then the cookie is saved. I close the browser. And
then i open a new browser, enter the url and expects that the user is auto
login. But when i am trying to to retrieve the cookie from the request then
i get null. The funny thing is that the textfields for username and password
are filled out so the cookie exist. I am just not able to retrieve it.

/Murat

2009/3/28 Peter Thomas <[email protected]>

> 2009/3/28 Murat Yücel <[email protected]>
>
> > Hi Guys do you need more information regarding this issue or should i
> > create
> > a small quickstart application? I cant really figure out why i am
> > experiencing this error...
> >
> > /Murat
> >
> > 2009/3/9 Murat Yücel <[email protected]>
> >
> > > Hi All
> > >
> > > I am experiencing a similar problem, as this jira issue:
> > > https://issues.apache.org/jira/browse/WICKET-2011
> > >
> > > I am trying to make auto login work. When you login and check the
> > remember
> > > box then a
> > > cookie is persisted. Whenever i logout the cookie is removed by calling
> > the
> > > clear method on
> > > the request. The problem is that the cookie is not cleared on logout
> when
> > > having a context path.
> > > I am still seing the cookie value but that should have been cleared.
> > >
> >
>
> I create a new cookie with the same name but no data to overwrite  the old
> one (line #108 onwards), works for me.  Can't remember now how I arrived at
> this, there may be a better way.
>
>
> http://fisheye3.atlassian.com/browse/j-trac/trunk/jtrac/src/main/java/info/jtrac/wicket/HeaderPanel.java?r=1288#l108
>
>
> > > Similar the cookie should not die when the cookie die, but somehow the
> > > cookie age is set to
> > > max age -1 when i open a new session.
> > >
> > > Hopefully someone can help me.
> > >
> > > /Murat
> > >
> >
>

Reply via email to