By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,049 Members | 1,308 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,049 IT Pros & Developers. It's quick & easy.

session_?

P: n/a
how to unregister all session params when you close browser or card in
firefox. in IE i don't have this problem, but firefox remember my
session?

Jan 23 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Rik
Gene wrote:
how to unregister all session params when you close browser or card in
firefox. in IE i don't have this problem, but firefox remember my
session?

Referring to: http://nl2.php.net/sessions

If the session is stored in a cookie, usually it _should_ be deleted when
the browser closes, at least with the default setting for
session.cookie_lifetime at '0'. However, as the browser may choose to
either accept or decline cookies, it also has the last say in how long it
will store a cookie. It might be deleted on closing, it might be kept for
all eternity. Usually that should not be a problem, as the data belonging
to the session should time out (see the session.gc_maxlifetime directive)
after a while if it isn't used.

You can offer users a method to logout to destroy the session immediately,
but unfortunately, very few visitors use that option.
--
Rik Wasmus
Jan 23 '07 #2

P: n/a
Gene wrote:
how to unregister all session params when you close browser or card in
firefox. in IE i don't have this problem, but firefox remember my
session?
Use a logout button to trash the session data - just because MSIE has
forgotten your session doesn't mean the server has.

C.
Jan 24 '07 #3

P: n/a
Yes, but problem is than when user didn't logout before closing browser
window. does using https solve this problem?

On 24 Sty, 23:45, Colin McKinnon
<colin.thisisnotmysurn...@ntlworld.deletemeunlessU RaBot.comwrote:
Gene wrote:
how to unregister all session params when you close browser or card in
firefox. in IE i don't have this problem, but firefox remember my
session?Use a logout button to trash the session data - just because MSIE has
forgotten your session doesn't mean the server has.

C.
Jan 25 '07 #4

P: n/a
Rik
On Thu, 25 Jan 2007 20:07:25 +0100, Gene <ox*****@wp.plwrote:
On 24 Sty, 23:45, Colin McKinnon
<colin.thisisnotmysurn...@ntlworld.deletemeunlessU RaBot.comwrote:
>Gene wrote:
how to unregister all session params when you close browser or card in
firefox. in IE i don't have this problem, but firefox remember my
session?Use a logout button to trash the session data - just because
MSIE has
forgotten your session doesn't mean the server has.
Yes, but problem is than when user didn't logout before closing browser
window. does using https solve this problem?
It doesn't.
http://www.php.net/session

Try to look at the gc (garbage collector) directives. Users that don't log
out get timed out.
--
Rik Wasmus
* I'm testing several new newsreaders at the moment. Please excuse
possible errors and weird content. *
Jan 25 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.