Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

How to redirect a specific web page in web view without login the website

$
0
0

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.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



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