llyouss / PAWebView

An component WebView for iOS base on WKWebView
MIT License
182 stars 32 forks source link

WKWebview SSO login support ? #2

Open AashishDev opened 6 years ago

AashishDev commented 6 years ago

Can please guide me how to maintain session using the cookies in WKWebview and implement the single sign functionality using your Control.

It's seem like you have provide the cache support in your controls, Please add some guide or information, How to use it ?

Thanks in advance !!

llyouss commented 6 years ago

You can use the api setcookie:(NSHTTPCookie *)cookie, but the cookies must be with expiresDate and domain.Following,other cookies will be save in cache automatically.

llyouss commented 6 years ago

open the cache,openCache = YES;

AashishDev commented 6 years ago

Thanks for your reply, Can you tell me some code how to make an request with cookies in WkWebview.. it's will be great help for me.

On 15-Feb-2018 11:17 pm, "llyouss" notifications@github.com wrote:

open the cache,openCache = YES;

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/llyouss/PAWeView/issues/2#issuecomment-366006579, or mute the thread https://github.com/notifications/unsubscribe-auth/AIX9rEotiebn6opwW32MQK8s7qDKcTtYks5tVG2agaJpZM4SGwMM .

llyouss commented 6 years ago
2018-02-16 1 59 30
AashishDev commented 6 years ago

Thankyou so much !! I will try and let you know about this.

Can you please share your mail id so I can communicate directly by email or other way.. If you don't mind.

On 15-Feb-2018 11:31 pm, "llyouss" notifications@github.com wrote:

[image: 2018-02-16 1 59 30] https://user-images.githubusercontent.com/10970045/36272675-2f075290-12bd-11e8-84ea-01bbe73c5bde.png

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/llyouss/PAWeView/issues/2#issuecomment-366010581, or mute the thread https://github.com/notifications/unsubscribe-auth/AIX9rKQ-jgTNuPki21z1fRcigGeMlv-Gks5tVHDegaJpZM4SGwMM .

AashishDev commented 6 years ago

Why not ..7503556275 my phone number..u can connect me.

On 15-Feb-2018 11:52 pm, "llyouss" notifications@github.com wrote:

About WeChat?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/llyouss/PAWeView/issues/2#issuecomment-366016522, or mute the thread https://github.com/notifications/unsubscribe-auth/AIX9rDZ4P0PAcEqpNRx0rCfxaG3QhCCpks5tVHXOgaJpZM4SGwMM .

AashishDev commented 6 years ago

Ok gud.. from where you belong ?

On 16-Feb-2018 12:06 am, "llyouss" notifications@github.com wrote:

my speaking English so bad! contact with email or WetChat!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/llyouss/PAWeView/issues/2#issuecomment-366020562, or mute the thread https://github.com/notifications/unsubscribe-auth/AIX9rIxtAlg94lNT5F9KLYB23jih236Tks5tVHk2gaJpZM4SGwMM .

AashishDev commented 6 years ago

From India.

By the way , my English is also so so..:)

On 16-Feb-2018 12:13 am, "llyouss" notifications@github.com wrote:

From china,and you?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/llyouss/PAWeView/issues/2#issuecomment-366022554, or mute the thread https://github.com/notifications/unsubscribe-auth/AIX9rDVl_GJ6Gd68Yss-ykrGTeEzNNNuks5tVHrNgaJpZM4SGwMM .

llyouss commented 6 years ago

I love Aamir Khan!

howiei commented 6 years ago

在使用的过程中,发现不断刷新一个web页面的高度,控制台一直在重复打印(“html 的高度:1591” )这条信息,用自己创建的WKWebview控制器可以正常打开,请问是什么原因?