session cookie name

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

session cookie name

NorbertHartl
Hi,

I want to use session cookies for my application. But I need
to change to name of the cookie. I detected that every time
the cookie name is different than the application name I get
an endless loop. I had a look at the code but didn't find any
which explains this behaviour.

Is there a reason for the cookie name being equal to the application
name?

Norbert



_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: session cookie name

Philippe Marschall
2007/4/18, Norbert Hartl <[hidden email]>:

> Hi,
>
> I want to use session cookies for my application. But I need
> to change to name of the cookie. I detected that every time
> the cookie name is different than the application name I get
> an endless loop. I had a look at the code but didn't find any
> which explains this behaviour.
>
> Is there a reason for the cookie name being equal to the application
> name?

Without digging it I would say because you need to have a different
session for each application.

Philippe

> Norbert
>
>
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: session cookie name

NorbertHartl
On Thu, 2007-04-19 at 09:18 +0200, Philippe Marschall wrote:

> 2007/4/18, Norbert Hartl <[hidden email]>:
> > Hi,
> >
> > I want to use session cookies for my application. But I need
> > to change to name of the cookie. I detected that every time
> > the cookie name is different than the application name I get
> > an endless loop. I had a look at the code but didn't find any
> > which explains this behaviour.
> >
> > Is there a reason for the cookie name being equal to the application
> > name?
>
> Without digging it I would say because you need to have a different
> session for each application.
>
Yes, but it is the other way round. I try to produce multiple
cookie names per application. One idea is the have a cookie
name combined out of application name and port WAKom is running.
It is to distinguish the instance it is running on.
What makes me wonder is the fact that I get endless redirects
only if the cookie name differs from the application name.

Norbert

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: session cookie name

Philippe Marschall
2007/4/19, Norbert Hartl <[hidden email]>:

> On Thu, 2007-04-19 at 09:18 +0200, Philippe Marschall wrote:
> > 2007/4/18, Norbert Hartl <[hidden email]>:
> > > Hi,
> > >
> > > I want to use session cookies for my application. But I need
> > > to change to name of the cookie. I detected that every time
> > > the cookie name is different than the application name I get
> > > an endless loop. I had a look at the code but didn't find any
> > > which explains this behaviour.
> > >
> > > Is there a reason for the cookie name being equal to the application
> > > name?
> >
> > Without digging it I would say because you need to have a different
> > session for each application.
> >
> Yes, but it is the other way round. I try to produce multiple
> cookie names per application. One idea is the have a cookie
> name combined out of application name and port WAKom is running.
> It is to distinguish the instance it is running on.

An easy way is to put the port into the url. See
http://www.juniorwebaward.ch/map

> What makes me wonder is the fact that I get endless redirects
> only if the cookie name differs from the application name.

IIRC the code redirects until it has the cookies it needs. There were
some patches, that should correct this. This is especially critical
for users with cookies disabled (which is why it's not cool to put the
port into the cookie). They should be in the later Seaside versions
but I can't tell you if they fix your specific problem.

Philippe

> Norbert
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside