diff --git a/README.en.md b/README.en.md new file mode 100644 index 0000000000000000000000000000000000000000..224c3f627ce5cba0c969990d8cabbf5cbd084385 --- /dev/null +++ b/README.en.md @@ -0,0 +1,36 @@ +# Web Cookie Operations + +### Introduction + +This codelab uses ArkTS to implement a simple login-free process and introduces basic cookie operations. + +![](screenshots/device/web.en.gif) + +### Concepts + +- Web: displays web pages. +- WebCookieManager: manages behavior of cookies in **Web** components. All **Web** components in an application share a **WebCookieManager** instance. + +### Permissions + +Network permission: **ohos.permission.INTERNET**. + +### How to Use + +1. Connect your device to the network. The HarmonyOS official website login page is displayed on the home screen. + +2. Tap the cookie read button to obtain the current cookie information, which is displayed in a dialog box. + +3. Tap the cookie setting button to set the cookie information. If the setting is successful, a message appears indicating that the cookie is written successfully. Tap the cookie read button. A dialog box appears showing that "info=Test cookie write". + +4. Tap the cookie verification button to redirect to another page. If you have logged in successfully on the home page, you will be redirected to the About page in Account Center. If you have not logged in, you will be redirected to the login page. + +### Constraints + +1. The sample is only supported on Huawei phones with standard systems. + +2. HarmonyOS: HarmonyOS 5.0.0 Release or later. + +3. DevEco Studio: DevEco Studio 5.0.0 Release or later. + +4. HarmonyOS SDK: DevEco Studio 5.0.0 Release SDK or later. diff --git a/README.md b/README.md index 9f84adca371e74271d78789dd80e9b28b1b2b9cb..284f5229702b6dce4fb7d47828c1ba2183fe65cb 100755 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# Web组件之cookie常见操作 +# 实现应用免密登录的功能 ### 简介 -本篇Codelab使用ArkTS语言实现一个简单的免登录过程,向大家介绍基本的cookie管理操作。 +本篇Codelab通过Web、WebCookie、WebCookieManager组件实现一个应用免密登录的场景,帮助开发者掌握ArkUI原生的cookie管理操作。 ![](screenshots/device/Web.gif) @@ -28,6 +28,6 @@ ### 约束与限制 1. 本示例仅支持标准系统上运行,支持设备:华为手机。 -2. HarmonyOS系统:HarmonyOS NEXT Developer Beta1及以上。 -3. DevEco Studio版本:DevEco Studio NEXT Developer Beta1及以上。 -4. HarmonyOS SDK版本:HarmonyOS NEXT Developer Beta1 SDK及以上。 +2. HarmonyOS系统:HarmonyOS 5.0.0 Release及以上。 +3. DevEco Studio版本:DevEco Studio 5.0.0 Release及以上。 +4. HarmonyOS SDK版本:HarmonyOS 5.0.0 Release SDK及以上。