PHP Session *not your usual* problem

This is a discussion on "PHP Session *not your usual* problem" within the PHP Forum section. This forum, and the thread "PHP Session *not your usual* problem are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Mar 28th, 2008, 10:00
New Member
Join Date: Mar 2008
Location: london
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
PHP Session *not your usual* problem

Hello,
I have a funny problem with my session management, actually I never came accross this before.
I have a website, an admin panel which is protected by a session object. I have, I think "standard" PHP session settings and my problem is that my system never logs me out after 20 minutes of inactivity.
My code for admin access is:
----------------------
if(isset($_SESSION['user']))
//he is loggedin, carry on
else
//send to login page, set the session on sucessfull authentification
----------------------

My php session settings are:
session.save_handler = files
session.use_cookies = 1
session.use_only_cookies = 1
session.name = ds
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 100
session.gc_maxlifetime = 1200
session.bug_compat_42 = 0
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180

According to those, I assume the garbage collector will have a 1% chance deleting any session after 1200 seconds.
There is enough activity on the server to trigger the GC often, but I stay logged-in for weeks!

Would you know what am I doing wrong?

Thank you for your help!
Reply With Quote

Reply

Tags
session

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Session data problem longstand PHP Forum 15 Dec 9th, 2007 18:28
Session Timeout problem LameesAyman ASP.NET Forum 2 May 2nd, 2007 14:45
Generating ID or Session Problem? Options chlad Classic ASP 2 Aug 21st, 2006 11:47
session problem fender79 Classic ASP 8 May 18th, 2005 02:26
problem with Session variable andrew_perez5 Classic ASP 0 Jan 24th, 2005 03:42


All times are GMT. The time now is 11:50.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43