1

All,

I have requirement,

In my application i logged in with my credentials and we are maintaining session based on cookies, In one requirement i need to send the cookies to Safari browser and maintain the session, Can we handle it in iOS,

kiri
  • 1,977
  • 5
  • 27
  • 55

1 Answers1

0

Your requirement can be fulfilled in following way. You could however open a special http://-URL from your application containing javascript to place a cookie:

NSString jsURL = @"javascript:function someFunction(){ /* your javascript code here */ } someFunction();void(0)";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: jsURL]];  

Similar Question is asked at answered at link Setting a cookie in an iPhone App

Community
  • 1
  • 1
Aamir
  • 16,329
  • 10
  • 59
  • 65