Current location: Hot Scripts Forums » Programming Languages » PHP » Session timeout ... help plz


Session timeout ... help plz

Reply
  #1 (permalink)  
Old 04-30-05, 06:00 AM
harpinder harpinder is offline
New Member
 
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Session timeout ... help plz

Hello All.. i am a new member of this site and i have a problem related to session.. what i have to do is to, just, do not expire ths session while the user is away after login... means if user logins and the system is idle for long time then after a while he clicks to modfiy some personal information then what i want is that he can do it without login... i have use gc_maxlifetime and gc_cookie_lifetime but the solutions doesnot comes out....

i am using php 4.3 version. i have also used .htacess file configuration for this but i am still there.

plz help

Harpinder
Reply With Quote
  #2 (permalink)  
Old 04-30-05, 06:42 AM
FiRe FiRe is offline
Code Guru
 
Join Date: Oct 2004
Location: UK
Posts: 801
Thanks: 0
Thanked 0 Times in 0 Posts
store the time away in a db and compare it with the current time, then if 5 mins or whatever use session_destory()
__________________
Alexa Share <-- Trade virtual shares in websites with this online game.

codR.us <-- Submit and vote for your favorite code snippets with codR.us.

XEWeb.net <-- The ultimate PHP resource network.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
session help darkcarnival PHP 5 05-09-05 12:40 AM
how do I manage session cookies? Jansen Windows .NET Programming 1 05-04-05 03:32 PM
session problem? EvilDeveloper PHP 1 04-01-05 07:18 AM
Session timeout, need an example, book not show one Spreegem PHP 4 10-16-04 10:10 PM
session timeout, loosing data entry MaritimeSource PHP 1 05-29-04 01:32 AM


All times are GMT -5. The time now is 06:43 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.