I've been creating a user login system and everything was going fine - I could start a session, assign variables and update my mysql user login table.
Then I leave it overnight without changing any code and the next morning the sessions appeared to not be created and so no variables either.
I came back to it later on that day (with no alterations to the code) and it's suddenly working perfectly fine again.
This happened a week ago and now suddenly yet again the sessions are not being created.
When this happens I do get the PHPSESSID added to my URL's and have tried various changes to these following variables but nothing seems to work.
session.auto_start Off
session.cache_expire 180
session.cache_limiter nocache
session.cookie_domain no value
session.cookie_lifetime 0
session.cookie_path /
session.cookie_secure Off
session.entropy_file no value
session.entropy_length 0
session.gc_maxlifetime 1440
session.gc_probability 1
session.name PHPSESSID
session.referer_check no value
session.save_handler files
session.save_path /tmp
session.serialize_handler php
session.use_cookies On
session.use_trans_sid 1
I just don't understand how it can stop working correctly when I don't even change anything.
I'm new to sessions myself but have also tried code from other programmers which also suffered from this apparent intermittent problem.
Has anyone else suffered from these bizarre circumstances and if so do you know what is happening and how to fix it from occurring again?
Any help would be grateful as I'm pulling my hair out at the moment 🙁
Cheers