[帮助]用户必须登录才能访问这些页面 [英] [Help]User must login to access the pages
本文介绍了[帮助]用户必须登录才能访问这些页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以下是我的代码,其中链接将从数据库生成..当用户想要访问链接时,他们必须登录..如何制作?
>
展开 | 选择 | Wrap | 行号
解决方案
我不完全是你所追求的,因为你的问题是非常模糊,但听起来你正在寻找各种登录脚本。
一个简单的登录表格看起来像这样:
展开 | 选择 | Wrap | 行号
我有我的登录和注销脚本页面...但我想制作上面给出的脚本,用户必须登录才能访问上述页面...我该怎么办?
< blockquote>设置会话变量,并检查每个页面上是否存在该会话变量。
登录脚本:
展开 | 选择 | Wrap | 行号
Below is my code where the link will be generated from database.. when user wanted to access the link they must be logged in.. how to make it?
Expand|Select|Wrap|Line Numbers解决方案I''m not exactly what you''re after as your question is pretty vague, but it sounds like you''re looking for a login script of sorts.
A simple login form would look something like this:
Expand|Select|Wrap|Line Numbers
i have my login and logout script pages... but i wanted to make the script that i given above, user must be logged in to access the above pages... how can i do?
Set a session variable, and check to see if that session variable exists on each page.
Login Script:
Expand|Select|Wrap|Line Numbers
这篇关于[帮助]用户必须登录才能访问这些页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆