如何在MULTIPLE页面之间传递会话ID [英] how to pass session id between MULTIPLE pages
问题描述
一直在摸我的头,但是无法将会话数据传递到多个页面。
场景是这样的。
我提出了一个问题页面,可选择通过表单登录底部。顶部是一个菜单条,网站访问对所有人开放,但如果登录并作为成员验证,则选择下载按钮。或文章或从菜单条中可以访问不同的内容。我需要我的用户只在启动画面上登录/验证一次,然后保存会话数据(从数据库中检索字符串说明成员或非成员),以便从站点内的任何页面访问。
my测试页面如下。
登录界面
---------------
Hi, been scratching my head and looking all over but cant get session data to pass to multiple pages.
The scenario is like this.
I present a splash page with an option to login at the bottom via form. Across the top is a menu strip, site access is open to all but if logged in and validatd as a member then selecting "downloads" or "articles" from the menu strip gives access to different content. I need my user to only login / validate once on the splash screen and then hold the session data (string stating member or nonmember retrieved from a db) to be accessable from any page within the site.
my test pages are as follows.
login screen
---------------
推荐答案
打开错误报告 *,并参见这篇文章。
*使用-1代替E_ALL。
Turn on Error Reporting*, and see this article.
* Use -1 instead of E_ALL.
感谢快速回复但是;我无法理解出了什么问题。
我通过放置
Thanks for the swift reply but; I can''t understand what is going wrong.
I modified the base.htm by placing
祈祷告诉我们,允许用户选择自己的会话ID的目的是什么?那么他们更容易试图劫持另一个会话?
What, pray tell, is the purpose of allowing your users to select their own session IDs? So that it''s easier for them to attempt to hijack another session?
这篇关于如何在MULTIPLE页面之间传递会话ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!