Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lakshsyal's avatar

IPhone Session auth middleware Issue

Hello Everyone,

I am facing a issue with session variables specially with iPhone.

When I print all my session variable in Computer it appear like this http://prntscr.com/olotee

After that when I check it in my iPhone it appears like http://prntscr.com/olousy

So as you can see in my iphone I am not able to get "login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d" because of that my "auth" middleware check push me to login page in iPhone and in Web and Android its working awesome !!

Let me know if anything is unclear I will try my best possibility to help you to understand this issue.

Thanks

0 likes
3 replies
lakshsyal's avatar

If the session is not working with safari 11.0... So I tried to login to a website and i refresh it to check if I got logout but I am not... So it means Laravel Session don't work ?

aurawindsurfing's avatar

Laravel session works as expected.

Try looking at your safari settings and disable all privacy modes, do not store cookies etc stuff.

Please or to participate in this conversation.