Advanced search  


CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: setcookie function to apply to both and  (Read 2188 times)

0 Members and 1 Guest are viewing this topic.


  • Coppermine newbie
  • Offline Offline
  • Posts: 1

the default setcookie function is:

setcookie($CONFIG['cookie_name'].'_data', $data, time()+86400*30, $CONFIG['cookie_path']);

It does not set the domain name.

The problem here is that, the cookie only works for, and NOT So i edited it to include a domain name "" so that any subdomain will still use that cookie as well as It already works for IE, but for some odd reason it doesn't work for Firefox. I've tried removing all the cookies and then logging in again with the "Remember this" but it still doesn't work. I am recognized as a logged in user in but does not recognize me.

Kindly advise what I am missing. Is there any other function I need to edit?



  • Guest

That's not the auth cookie. Assuming you are running unbridged, you need to edit bridge/ coppermine_udb::create_session();
Pages: [1]   Go Up

Page created in 0.043 seconds with 20 queries.