关于会议的问题 [英] questions about sessions

查看:77
本文介绍了关于会议的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


首先,我想说我发现了我认为非常有用的

教程,以防万一有人在那里对他们有疑问:

http://www.free2code.net/tutorials/p...4/sessions.php

我已经使用会话很长一段时间了但是只有在看完这个

之后,我才能真正了解客户端和服务器端的情况。


不幸的是,阅读后我还有一些未解决的问题它,

,因为它非常基础,并为会话提供快速介绍。为了测试

的目的,我关闭了IE中的所有cookie并试图在我的本地主机上登录我的

站点,该站点使用会话进行登录。此外,<我的ini文件中有
session.use_trans_sid = 0。我无法弄清楚如何,但

不知何故我的脚本仍然可以工作,我能够正常登录,即使

虽然禁用了cookie,也有反过来SID。我的会话是如何传递的,因为我的理解是这两种可能的方法是什么?

没有通过URL传播的sessid,所以它不是<通过get变量获得



另外,我查看了我的sessiondata文件夹,发现了一堆会话

数据。当我实际注销并终止一个会话时,它会从

文件夹中删除它。但是,当我关闭浏览器窗口时,它不会从文件夹中删除
。立即重新打开浏览器

导致新会话并要求用户再次登录,但上一次会话中的旧数据仍然存在。我检查了我的ini,

并找到了默认值:


;在这个秒数之后,存储的数据将被视为垃圾和

;通过垃圾收集过程进行清理。

session.gc_maxlifetime = 1440


从前几天开始,根据这个,它应该在24分钟后删除。


对不起,很长的帖子,但提前感谢所有的帮助!!


Marcus

解决方案

2004年8月3日星期二17:17: 35 +0000,Marcus写道:

;在这个秒数之后,存储的数据将被视为垃圾和
;通过垃圾收集过程进行清理。
session.gc_maxlifetime = 1440

但是我无法告诉我这是因为我有会话文件
从几天前,根据这个,它应该在24分钟后删除。



这不是1440秒?在哪种情况下,那是'24小时,而不是分钟=)


问候,


Ian


-

Ian.H

digiServ网络

伦敦,英国
http://digiserv.net/


在星期二, 2004年8月3日20:02:14 +0000,Ian.H写道:

2004年8月3日星期二17:17:35 +0000,Marcus写道:
< blockquote class =post_quotes>;在这个秒数之后,存储的数据将被视为垃圾和
;通过垃圾收集过程进行清理。
session.gc_maxlifetime = 1440

但是我无法告诉我这是因为我有会话文件
从几天前,根据这个,它应该在24分钟后删除。



这不是1440秒?在哪种情况下,那是'24小时,而不是分钟=)



对不起,请忽略我上面的回复.. [记下精神笔记搞大脑

_before_手指]这是漫长的一天=)


问候,


Ian


-

Ian.H

digiServ网络

伦敦,英国
http://digiserv.net/


我注意到了消息 - ID:

< pa **************************** @ bubbleboy.digiserv .net>来自Ian.H

包含以下内容:

这不是1440秒吗?在哪种情况下,那是'24小时,而不是分钟=)



对不起,请忽略我上面的回复.. [做心理笔记搞大脑
_before_ fingers] it'这是漫长的一天=)




如果你感兴趣的话,我必须在9月份教授基本的技能算术......< g>


-

Geoff Berrow(把猫放到电子邮件中)

它只是Usenet,没有人死了。

我的意见,而不是我的委员会。

简单的RFD http://www.ckdog.co.uk/rfdmaker/


Hi All,

First, just wanted to say that I found what I thought was a very helpful
tutorial on sessions in case anyone out there has questions on them:

http://www.free2code.net/tutorials/p...4/sessions.php

I''ve been using sessions for quite some time but only after reading this
do I really understand what is going on on both the client and server side.

Unfortunately, I still have some unanswered questions after reading it,
as it is pretty basic and gives a quick intro to sessions. For testing
purposes, I turned off all cookies in IE and attempted to sign into my
site on my local host, which uses sessions for signing in. In addition,
session.use_trans_sid = 0 in my ini file. I can''t figure out how, but
somehow my scripts all still work and I am able to login fine, even
though cookies are disabled, as well as trans sid. How is my session id
being passed, as my understanding is these are the 2 possible methods?
There is no sessid propagated through the URL either, so it is not
through a get variable.

Also, I looked in my sessiondata folder and found a bunch of session
data. When I physically log out and kill a session, it removes it from
the folder. However, when I just close the browser window, it does not
remove the data from the folder. Reopening the browser right away
results in a new session and requires the user to login again, but the
old data from the previous session is still there. I checked my ini,
and found the default:

; After this number of seconds, stored data will be seen as ''garbage'' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440

But this isn''t working as far as I can tell because I have session files
from days ago, and according to this it should be deleted after 24 minutes.

Sorry for the long post, but thanks in advance for all help!!

Marcus

解决方案

On Tue, 03 Aug 2004 17:17:35 +0000, Marcus wrote:

; After this number of seconds, stored data will be seen as ''garbage'' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440

But this isn''t working as far as I can tell because I have session files
from days ago, and according to this it should be deleted after 24 minutes.


Isn''t that 1440 seconds? Inwhich case, that''s 24 hours, not mins =)

Regards,

Ian

--
Ian.H
digiServ Network
London, UK
http://digiserv.net/


On Tue, 03 Aug 2004 20:02:14 +0000, Ian.H wrote:

On Tue, 03 Aug 2004 17:17:35 +0000, Marcus wrote:

; After this number of seconds, stored data will be seen as ''garbage'' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440

But this isn''t working as far as I can tell because I have session files
from days ago, and according to this it should be deleted after 24 minutes.


Isn''t that 1440 seconds? Inwhich case, that''s 24 hours, not mins =)


Sorry, ignore my reply above.. [ makes mental note to engage brain
_before_ fingers ] it''s been a long day =)

Regards,

Ian

--
Ian.H
digiServ Network
London, UK
http://digiserv.net/


I noticed that Message-ID:
<pa****************************@bubbleboy.digiserv .net> from Ian.H
contained the following:

Isn''t that 1440 seconds? Inwhich case, that''s 24 hours, not mins =)


Sorry, ignore my reply above.. [ makes mental note to engage brain
_before_ fingers ] it''s been a long day =)



I have to teach basic skills numeracy in September if you are
interested...<g>

--
Geoff Berrow (put thecat out to email)
It''s only Usenet, no one dies.
My opinions, not the committee''s, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/


这篇关于关于会议的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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