Session not set on safari $_SESSION['user_link'] = 'asdasd'; it dosent work in all browsers are fine but just in safari
Asked
Active
Viewed 221 times
-1
-
2You need to provide a bit more information than that. – Sam Aug 11 '18 at 13:57
1 Answers
0
Have you tried to do research on the subject?
Safari apparently has a more conservative cookie policy than other browsers. If everything on the PHP-side works, and other browsers work, I would think that Safari is not sending the session cookie back to the server.
Source: https://stackoverflow.com/a/2733897/6320082
By manually adding: setcookie('PHPSESSID', session_id(), 0, '/');

Mert Aşan
- 366
- 1
- 6
- 18