I\'m writing a user login system, and I (like so many others) am having a problem with my sessions.
Here\'s the pointer from the login script when the inputs are validat
You're most likely running into output buffering, which is why it sometimes works and other times it does not. Generally speaking, stick to starting the session before any output is generated, you'll find your code works better.