Welcome to Geeklog, Anonymous Sunday, October 06 2024 @ 01:32 pm EDT

Geeklog Forums

cookie naming


cafead

Anonymous
I had a problem with geeklog cookies interfering with another application I have on my site. I was told that I could change the cookie naming convention found in the config. inc.php file.

Unfortunately I don't know a lot about using cookies or coding and I can't figure out what I should change. Can anyone point me in the right direction.

Thanks for any suggestions.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Text Formatted Code
$_CONF['cookie_session']                = 'gl_session';
$_CONF['cookie_name']                   = 'geeklog';
$_CONF['cookie_password']               = 'password';
$_CONF['cookie_theme']                  = 'theme';
$_CONF['cookie_language']               = 'language';
$_CONF['cookie_lastvisit']              = 'LastVisit';
$_CONF['cookie_lastvisittemp']          = 'LastVisitTemp';

 

These are the default names for the cookies Geeklog uses (in config.php). The documentation tells you which cookie is used for what.

bye, Dirk
 Quote

cafead

Anonymous
Where will I have to change the names in addition to the config.php file. I tried just changing the names there and now cookies are not working.

Thanks
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You only need to change them in config.php. If, say, you want to change the password cookie, set

$_CONF['cookie_password'] = 'geeklog_pwd';

(or whatever you want the new name to be). That should work.

Of course, you have to log in again after that change (or, better yet, log out first, then make the change, then log in again).

bye, Dirk
 Quote

All times are EDT. The time is now 01:32 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content