我对如何编码有错误的想法...欢迎,mankolele [英] I have a wrong idea on how to code...Welcome, mankolele

查看:78
本文介绍了我对如何编码有错误的想法...欢迎,mankolele的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

欢迎,mankolele。 在每个网站上的部分如何编码我认为它与COOKIES或SESSIONS有关但似乎我错了任何可以帮助我的人。


提前谢谢。

解决方案

欢迎邮件本身与cookie或会话无关。它仅在您登录后显示,并且仅镜像您自己输入的名称(用户ID)。如果要在会话期间在更多位置使用该用户标识,可以将其存储在cookie或会话中。


所以:输入你的用户名和密码后,这些值会被发送到一个脚本,如:[php]


< blockquote> user =


_POST [''user''];


The " Welcome, mankolele. "part on each site how is it coded I thought it has something to do with COOKIES or SESSIONS but seems I am wrong anyone who could help me with this bit.

Thanks in advance.

解决方案

The welcome message itself has nothing to do with cookies or sessions. It is only displayed after you logged in and merely mirrors the name (userid) you have entered yourself. When you want to use that userid in more places during a session, you can store it in a cookie or session.

So: after you entered your userid and password, these values are POSTed to a script that goes something like:[php]


user =


_POST[''user''];


这篇关于我对如何编码有错误的想法...欢迎,mankolele的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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