Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 26th, 2006, 07:20 AM
Authorized User
Join Date: Jun 2006
Location: bombay, maharashtra, India.
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

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

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 09:41 PM.

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