Jump to content

Problems with iOS and Sessions


fmpros

Recommended Posts

Hi Guys,

 

I've got a login script that works fine on my desktop browsers and android phone but it does not work on iOS.  More specifically, the session variables are not saved.  All of my pages after the login script start with:

if(!session_id()) session_start();

When I echo the variables on the page, they are empty when using iOS.  Any ideas would be greatly appreciated!

 

Thanks,

John

Link to comment
https://forums.phpfreaks.com/topic/266795-problems-with-ios-and-sessions/
Share on other sites

Thanks Porl, I'll give that a try.  It gets more peculiar.  I've tested this on three iOS devices.  It works on my fiance's iPhone, but not on the other two.  iOS version is the same I believe.  Maybe there is a setting?  IDK, I'm an android guy myself.  I'll tinker and see what I can find out.

 

 

I'm just splitballing here, but you could try:

 

if(session_id() == "") 

 

or

 

if(!isset($_SESSION)) session_start();

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.