Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 26th, 2006, 07:20 AM
Authorized User
 
Join Date: Jun 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default what is session id and when does it expire

hi all
i am using sessions in my site . i am a bit confused about i know definition of session id .but as far as i know it should be allocated new each time a new session is started.

1?) can smbdy tell me when do we say that a new session is started ..is it when we close and open browser window ..
is it when we press refresh button
or is it dependent on some session timeout factor

2?> how is garbage collector related to session timeout

3?> how is cookie expire time related to session timeout

as
in my case i set session.gc_maxlifetime=1 sec
just for testing purpose and did not write anything in session file for 1 minute so that garbage collector remove my old session file but
even after 3 minutes my old session data was retained
what can be the reason behind it
please tell

nidhi
__________________
nidhi





Similar Threads
Thread Thread Starter Forum Replies Last Post
identify which session variable expire neon20 Classic ASP Basics 0 September 4th, 2007 05:59 AM
how to redirect to logout page when session expire madhusrp ASP.NET 2.0 Basics 10 April 4th, 2007 08:16 AM
what is session id and when does it expire nidhimittal PHP How-To 3 June 29th, 2006 05:17 AM
session id rbojja J2EE 2 February 13th, 2006 05:48 AM
session id rbojja J2EE 1 February 11th, 2006 01:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.