[Zope-CMF] Portal Skin and cookie
Gitte Wange
gitte@mmmanager.org
Sat, 24 Nov 2001 02:33:51 +0100
---- Original Message -----=20
From: "Jens Vagelpohl" <jens@zope.com>
To: "Gitte Wange" <gitte@mmmanager.org>
Cc: "CMF mailinglist" <zope-cmf@zope.org>
Sent: Saturday, November 24, 2001 12:44 AM
Subject: Re: [Zope-CMF] Portal Skin and cookie
> gitte,
>=20
> the skin selection is set as a cookie on the user's browser. so if =
your=20
> check sets this cookie and then, in the same browser session, you come =
in=20
> from another place you might not see the change you want because the=20
> cookie has not expired.
>=20
> i suggest you add a second check wherever you added the check for HTTP =
> REFERER and explicitly set the skin cookie to use "Basic" if its value =
is=20
> not "Basic" and the HTTP_REFERER is not your special site.
>=20
> jens
Well at first this also seemed like the right solution to me but ..
When the user browse around on the site their HTTP_REFERER will be set =
to something else .. and then the skin will only be applied on the first =
page they visit ..
On the other hand .. it is most unlikely that the users will visit the =
site from the other site and "on their own" in the same session .. so =
perhaps it will work fine for the users ..=20
But thanks for the suggestion :-)
Gitte
> On Thursday, November 22, 2001, at 10:06 , Gitte Wange wrote:
>=20
> > Hello,
> >
> > I'm not an expert in cookies, but I need some help with a site of =
mine
> > ..
> > I have defined a new skin with another stylesheet for my site. I =
want to
> > use this skin everytime the visitor comes from one particular site =
(I
> > use the HTTP_REFERER variable to check this) ...
> >
> > I only want it to use this skin whenever the user comes from this
> > particular site - else it should use the normal site (which is =
Basic)
> > ...
> > But it looks like it sets this skin as the users default skin even =
when
> > they enter the site from somewhere else ...
> >
> > Can I prevent this in any way ?
> >
> > --
> > Gitte Wange Jensen
> >
>=20
>=20
> _______________________________________________
> Zope-CMF maillist - Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>=20
> See http://www.zope.org/Products/PTK/Tracker for bug reports and =
feature requests
>=20