Hi, I want to redirect a web page in webview in my app. But when i redirect it, webview always redirects me to login page first. How can i avoid this login step. What i did, i stored the cookie while login in my app as the same website login credentials with same host and before the webview load, i set that cookie to that webview. But it does not working at all. Below is my code portion -
get cookie by - var cookie = xhr.getResponseHeader("Set-Cookie")
and set this cookie to webview by - webView.addEventListener('beforeload', function(e) { Ti.API.info("Cookie has been set"); webView.evalJS("document.cookie="+cookie+";"); });
Please help me out. Thanks.