How Can I get a Session Id or username in php?

前端 未结 3 1040
清歌不尽
清歌不尽 2021-01-14 07:12

I have a website where users can log in. I have tried:

and When users login I set their session as

3条回答
  •  不思量自难忘°
    2021-01-14 07:55

    Without showing more code we cant comment much, but are you sure you are calling session_start in each page you use your session variable too? Also ensure you are using the same capitalisation (userlogin != UserLogin).

提交回复
热议问题