Welcome to Geeklog, Anonymous Wednesday, September 18 2024 @ 09:42 pm EDT

Geeklog Forums

cookie issue with subdomain


Scotsman

Anonymous
I recently set up forums.scotsmanality.com to forward to my forums. Now however, if someone goes directly to that URL, they are not logged in(even if they were logged in on the main site). Anyway to fix this?
 Quote

Ian

Anonymous
Set your cookie to .scotmanality.com (preceeding dot)
 Quote

Scotsman

Anonymous
Thanks :-) How would I do that for all users?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
What Ian meant is setting $_CONF[\'cookiedomain\'] = \'.scotmanality.com\'; in your config.php bye, Dirk
 Quote

Scotsman

Anonymous
I tried that, but it still isnt working.... Frown
 Quote

Status: offline

wlparks

Forum User
Junior
Registered: 02/21/03
Posts: 24
what version of geeklog are you using?
 Quote

Scotsman

Anonymous
1.37sr1.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Scotsman: 1.37sr1.
Yikes. I hope that\'s a typo and you really meant 1.3.7sr2. If not, stop doing whatever you do at the moment and read this. Now. Setting the cookiedomain variable as suggested probably doesn\'t really help for 1.3.7 - there have been some fixes in the cookie handling in Geeklog 1.3.8 that should resolve this. So the suggestion would be to upgrade to Geeklog 1.3.8. bye, Dirk
 Quote

Status: offline

wlparks

Forum User
Junior
Registered: 02/21/03
Posts: 24
Not all of the setcookie functions have all of the parameters set. This has been fixed in the latest version, this might be your problem. grep for setcookie and make sure they all have the following.
Text Formatted Code
setcookie($_CONF['cookie_session'],'',time() - 10000,$_CONF['cookie_path'], $_CONF['cookiedomain']);
 Quote

All times are EDT. The time is now 09:42 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