$_SESSION values not holding!

前端 未结 5 634
轮回少年
轮回少年 2021-01-22 03:18

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

5条回答
  •  不思量自难忘°
    2021-01-22 03:59

    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.

提交回复
热议问题