Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application session in iOS?

I need to create a "login application" but I don't know about session in iOS. My application need login to my website (PHP based website) to get data. Can anybody tell me how to create and manage application session in iOS app? Thanks!

like image 638
asedra_le Avatar asked Apr 02 '26 02:04

asedra_le


1 Answers

There's no concept of web/browser session (whatever that means to you) in iOS. iOS applications are just launched when a user touches the icon, and are quit when the user quit them.

Typically you require the user to input the login id and the password when the app is launched, and you create a web/server/browser session by accessing the web server. You can keep the id and the password securely inside in the storage of the iPhone, so that the user doesn't need to input them again and again whenever the program is launched.

like image 87
Yuji Avatar answered Apr 03 '26 16:04

Yuji



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!