PHP Session array not maintained when calling script from iOS app -
i have php script on server. started testing using postman chrome. worked flawlessly. however, if make call same exact url through afnetworking, session array in php not maintained.
another interesting issue, if run script localhost using mamp, session array maintained in ios app well.
what problem?
update: using hostgator , have found session_id() keeps changing when called ios app not postman. neither change on localhost.
update 2:
session_id() keeps changes if app terminated, , call sign in again on viewdidload without signing out before app terminated.
see solution below!
yeah bound happen. browser job of handling session data. ios app calling edge needs read cookie data http header session , handle manually. read headers response, store session cookies , add them while making subsequent requests. otherwise stripped.
i don't know how in ios app since web developer. sorry that.
Comments
Post a Comment