I have a strange error regarding the session name and session id.
I have used ini_set()
to change session.name
from PHPSESSID
to 'AAA'
Also ini_set()
is set before session_start()
Tired to use session_name()
instead, same result
After I do that, the session_id()
will return different id whenever I load the page. After I change back, work fine again.
May I have help to solve this?
Thank you very much!!
Update Solution:
Cannot change php session cookie name
Have you tried $mySession = session_name("AAA");
where $mySession
is the current session?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With