Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 11:16 am EDT

Geeklog Forums

Set Cookie Failure


Status: offline

Nightdude

Forum User
Chatty
Registered: 09/15/04
Posts: 61
caffeinated
Suddenly, during the past 48 hours, one of my sites wont allow anyone to log-in, shows as logged in on the who's online block, but no access to registered member services.
I have four Geeklog sites total all on the same server - different domains of course, only one has this problem. Error log shows "Failed to set session cookie"
Would could have happened - config file corruption maybe? Already reloaded a new one, no change..

Ideas?

ND
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Nightdude: Error log shows "Failed to set session cookie"

This error message is only used once, in lib-sessions.php, when Geeklog tries to set the user's session cookie. Which means that the setcookie() call there failed.

The PHP manual has this to say about the return value of setcookie():
If output exists prior to calling this function, setcookie() will fail and return FALSE.


So, to cut a long story short: Something somewhere has emitted something before that setcookie() call. Sounds like a typical whitespace problem ...

bye, Dirk
 Quote

Status: offline

Nightdude

Forum User
Chatty
Registered: 09/15/04
Posts: 61
What caused the change??

This a a site that has been up for years, and it's only this site.

ND
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Did you change any config.php settings recently? Installed any plugins? Re-uploaded any files? Things like that.

bye, Dirk
 Quote

Status: offline

Nightdude

Forum User
Chatty
Registered: 09/15/04
Posts: 61
No changes what so ever since the last upgrade a while back.

Thats why I am so puzzled.

ND
 Quote

All times are EDT. The time is now 11:16 am.

  • 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