I have an administrative program starting with
session_start()
It starts by asking for userid and password.
It's been working for over a year with no problems. Within the last couple of day something strange has been happening. Frequently, but not always, at the bottom of the output is the message:
Warning: Unknown(): The session id contains invalid characters, valid characters are only a-z, A-Z and 0-9 in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
when it re enters the program I get:
Warning: session_start(): The session id contains invalid characters, valid characters are only a-z, A-Z and 0-9 in /usr/local/include/eg-admin-index.inc on line 7
Taking a shot in the dark I put
session_name();
before
session_start()
It seems to have fixed the problem but I have no idea why. Can anyone shed some light
on:
1. what caused the problem to start?
2. how session_name() is fixing the problem?
Thanks
Urb