WKWebView loses variable $ _SESSION after a redirect

I am updating from UIWebView.

I do not know why in WKWebView I lose the SESSION variable after a redirect. I have a web application that goes to a main page (url: / dashboard / USERTOKEN), where USERTOKEN is different for each user, that is, it is like a login.

When it is verified that the login is correct, it is redirected to one site or another depending on the type of user (normal or administrator).

The problem is that after this redirection, the variable $ _SESSION is always null. Before the redirection, the variable is correct.

I have tried many things but I can not solve it, is this behavior normal? Where can the error be?


cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.19.0
ionic (Ionic CLI) : 3.19.0

global packages:

cordova (Cordova CLI) : 6.5.0 

local packages:

Cordova Platforms : android 6.2.3 ios 4.4.0
Ionic Framework   : ionic1 1.3.1

System:

Node  : v8.9.1
npm   : 2.15.12 
OS    : macOS High Sierra
Xcode : Xcode 9.1 Build version 9B55 

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro