Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70765

PHP session does not manage for ionic app in IOS emulator?

$
0
0

@thilinanara wrote:

PHP session data destroys when requested is made via IOS emulator in ionic 3. It is working well in android. The backend is developed to check session data for each request. PHP debug does not work when request is made via IOS emulator too. Please provide possible solutions for the issue.

      userInfo={} as UserInfo;

       this.http.post(this.baseUrl+'index.php/login/user_login', credentials, options).
       map(res => res.json()).subscribe(
             data => {

               if(data['status']==true && data['data']['login']==true){

                 //Store user Info
                 this.userInfo.username=data['data']['user_details']['username'];
                 this.userInfo.user_type=data['data']['user_details']['user_type'];
                 this.userInfo.user_id=data['data']['user_details']['user_id'];

                 this.storage.set('user_info',this.userInfo).then(()=>{
                   this.gui_permission();
                   this.isLoggedIn=true;
                   this.loggedUser=this.user.username;
                 });

                 this.loading.dismiss();

                 this.storage.set('user',this.user.username).then(()=>{
                   this.isLoggedIn=true;
                   this.loggedUser=this.user.username;
                 });

Thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70765

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>