使用Cookie和会话ID [英] Using Cookies and Session ID's

查看:101
本文介绍了使用Cookie和会话ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何存储用户名和密码,cookies


我想创建一个cookie,其中应该存储文本框中任何人写的文本?


我有这个代码: -

How to store username and password,cookies

I want to create cookies in which the text written by anyone in textbox should be stored?

I have this code:-

展开 | 选择 | Wrap | 行号

推荐答案

然后你需要做的就是放带有提交按钮的表单中的文本框。一旦提交,您可以请求文本框的内容并将其分配给cookie变量。


希望这会有所帮助,


B博士
Then all you need to do is put a textbox in a form with a submit button. Once it''s submitted you can request the contents of the textbox and assign it to the cookie variable.

Hope this helps,

Dr B



然后您需要做的就是在带有提交按钮的表单中放置一个文本框。一旦提交,您可以请求文本框的内容并将其分配给cookie变量。


希望这会有所帮助,


博士B
Then all you need to do is put a textbox in a form with a submit button. Once it''s submitted you can request the contents of the textbox and assign it to the cookie variable.

Hope this helps,

Dr B



我的表格,文本框和子项目按钮都有

这样可以吗?

response.cookies(" a")= b


如果没问题,那么cookie变量在哪里,或者在b ??

I have both in my form, textbox as well as submt button
Is this ok?

response.cookies("a")=b

If ok, then where will be the cookie variable, in a or in b??


假设你的html中有以下内容:
Say you have the following in your html:
展开 | 选择 | Wrap | 行号


这篇关于使用Cookie和会话ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆