Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Cookie Domain in cpg132  (Read 5576 times)

0 Members and 1 Guest are viewing this topic.

go77306

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Cookie Domain in cpg132
« on: December 11, 2004, 03:44:15 pm »

Hi:

I wanted to integrate cpg132 with ipb2.0.  I found my CPG132's cookie domain is always set to www.mydomain.com, and my ipb20's cookie domain is mydomain.com.  I can change my ipb20's cookie domain to www.mydomain.com.  However, I am just wondering if there is a way to change CPG132's cookie domain from www.mydomain.com to mydomain.com?

Thanks in advance!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Cookie Domain in cpg132
« Reply #1 on: December 11, 2004, 04:06:09 pm »

coppermine's cookie domain is not set to www.domain.tld!

Joachim
Logged

go77306

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Cookie Domain in cpg132
« Reply #2 on: December 12, 2004, 02:04:45 pm »

coppermine's cookie domain is not set to www.domain.tld!

Joachim

Here is my cookie screen shots:
Logged

go77306

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Cookie Domain in cpg132
« Reply #3 on: December 12, 2004, 02:05:51 pm »

coppermine's cookie domain is not set to www.domain.tld!

Joachim

Here is my cookie screen shots:
see, the cookie host  starts with www
Logged

go77306

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Cookie Domain in cpg132
« Reply #4 on: December 12, 2004, 02:09:30 pm »

coppermine's cookie domain is not set to www.domain.tld!

Joachim

Here is my cookie screen shots:
see, the cookie host  starts with www

I was access my gallery from this URL: http://www.campgroundcanada.com/gallery
If I access my gallery from the url without www (e.g. http://campgroundcanada.com/gallery), then my cookie domain is campgroundcanada.com
Why this happened?  Where can I check if my cookie domain setting for CPG is correct?

Thanks
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Cookie Domain in cpg132
« Reply #5 on: December 12, 2004, 04:23:15 pm »

Coppermine doesn't use a domain identifier, just a domain path, which is set to / by default.  If you access your site without the www you have a different cookie.  I believe you can redirect all requests that don't have www to your www site to avoid this problem.  This is possible using a htaccess file, if you are using Apache.  There may be a post about this on our forums, but if not you can always Google for htaccess mod_rewrite redirect.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Cookie Domain in cpg132
« Reply #6 on: December 13, 2004, 08:19:25 am »

kegobeer is right (as always :D) - coppermine doesn't set the cookie domain. You've just found out the basic way cookies work on the internet. Your screenshot is taken from the cookie section of IE as far as I can see - do you trust M$ to provide accurate information anyway ;)?
When accessing your site with a good browser this is what I see as cookie information:
Quote
Cookie Information - http://www.campgroundcanada.com/gallery/
http://www.campgroundcanada.com/gallery/
Name   gallery-_data
Value   YToyOntzOjI6IklEIjtzOjMyOiJmZGM3ZTllMTBhNWRiYWE2Njg2ZjQ1MzcxMWJjZWE1NSI7czoyOiJhbSI7aToxO30%3D
Host   www.campgroundcanada.com
Path   /
Expires   Mittwoch, 12. Januar 2005 08:19:10
Can you see any reference to "cookie domain"? I can't.

Joachim
Logged

go77306

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Cookie Domain in cpg132
« Reply #7 on: December 13, 2004, 02:02:02 pm »

my screenshot was from Mozilla's cookie manager :-)
Well, I believe everybody's IPB2.0's cookie domain name is .domain.com, and it works with cpg very well.  My ipb2.0's cookie must be set to www.domain.com in order to let cpg 1.3.2 work.  I think that is the problem.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Cookie Domain in cpg132
« Reply #8 on: December 14, 2004, 06:33:16 am »

actually no, afaik: .domain.tld means anything.domain.tld.

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.034 seconds with 15 queries.