会话相关(用户名和密码) [英] session related (username and password)

查看:105
本文介绍了会话相关(用户名和密码)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生我有2个变量用于存储用户名和密码的会话值,并在另一页上获取这些值,但我的问题是这个先生我怎么能在1变量的帮助下。

i想要使用要使用的单个变量存储用户名和密码的值并提取另一页的值请帮助我

解决方案

您可以使用分隔符加入用户名和密码。



考虑以下示例

ajay~welcome

ajay是用户名

〜是分隔符

欢迎密码



现在你可以在会话中存储连接值,并在下一页分割值在分隔符'〜'上,并使用数组的第0个索引作为您的用户名,数组的第一个索引作为密码。



希望这有帮助。

sir i have 2 variables for storing session value of user name and password and get these value on another page but my question is this sir how can i with the help of 1 variable.
i want use single variables to use store the value of username and password and extract the value of another page please help me

解决方案

You may join the username and password with a separator .

Consider the following example
ajay~welcome
ajay is the username
~ is the separator
welcome is the password

now you may store the concatinated value in a session and on the next page split the value on the separator '~' and use the 0th index of the array as your username, 1st index of the array as the password.

Hope this helps.


这篇关于会话相关(用户名和密码)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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