如何显示谁登录的个人资料? [英] How to display the profile who login?

查看:84
本文介绍了如何显示谁登录的个人资料?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从1中有两个是login.aspx和另一个profile.aspx ...如果用户登录另一个表单将打开,则登录的人应该获取其个人资料....任何人都可以打电话给我如何执行此操作...

I have two from in 1 is login.aspx and another profile.aspx... if the user login the another form will open, there the person who log on should get their profile.... Can any one tel me how to do this...

推荐答案

他们登录时,将ID保存到会话或Cookie中.
当您加载第二页时,检索ID并从数据库中获取信息.
When they log in, save the ID to either the Session or a Cookie.
When you load the second page, retrieve the ID and get the information from the DB.


这篇关于如何显示谁登录的个人资料?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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