home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

PHP Session Help

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1724
Discussions: 200,933, Posts: 2,379,193, Members: 246,298
Old March 11th, 2009, 02:16 AM   Digg it!   #1 (permalink)
Senior Member
 
Join Date: May 2003
Location: Aus, Gold Coast :)
Posts: 802
Send a message via ICQ to exally
PHP Session Help

Hey guys,

I can't seem to get my PHP sessions to stay alive longer than 5 mins of inactivity.

I have set

session.gc_maxlifetime 86400
session.cookie_lifetime 86400
session.name FILEITHERE (i do this as test, still doens't work).

Any ideas ??
exally is offline   Reply With Quote
Old March 15th, 2009, 09:06 PM     #2 (permalink)
Member
 
Join Date: Aug 2008
Posts: 129
If you set gc_maxlifetime to 0 it stays open untill the browser is closed.
Try than and commenting out the cookie_lifetime just for debugging purposes.
hrev0 is offline   Reply With Quote
Old March 16th, 2009, 05:09 AM     #3 (permalink)
Senior Member
 
Join Date: May 2003
Location: Aus, Gold Coast :)
Posts: 802
Send a message via ICQ to exally
yeah i fixed this problem by changing the directory where the session is stored. Might have to run a cron to chefck that it does get deleted
exally is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
php coding assistance with templete.php herbal_lavender Webmastering and Programming 2 December 29th, 2005 09:35 AM
Wardriving Session 1 ClubMed IMO Community 7 February 25th, 2004 04:55 AM
per session cookies?? wazzat?? draboo Networking and Internet 2 November 15th, 2003 11:45 AM
Terminal session to a dc muno Applications and Operating Systems 2 November 3rd, 2003 02:53 AM
ASP session help... dragonb Webmastering and Programming 2 September 21st, 2002 03:37 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2886)
Wireless Televisions. (5)
California Passes Anti-Flat-HDTV Le.. (39)
Obama the Muslim (14)
Is the PSU I received dead? (10)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
HIS HD5770 graphic card question (15)
Print spooler problem (13)
Foreign voltage (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
A good PSU? (10)
EVGA 9800 gtx help with finding a g.. (8)
New Computer wont recognize XP disc (7)
Recent Discussions
Wireless Televisions. (5)
CPU fan stops spinning randomly (2)
World's largest Monopoly Game using G.. (332)
Ideal cheap graph card for PC-Gaming? (17)
BIOS won't read disk when I try to fl.. (0)
Install XP pro and a Vista laptop ?? (11)
Partition Magic caused HDD problem (2)
Graphics Card Upgrade Question (1)
favorit (1)
solutions for virtical white lines on.. (1)
Regular Build (3)
Fire in DVD (2)
Modern Warfare For the PC (33)
radeon x850xt platinum & shader 3 (3)
Have you switched yet? (84)
Wireless Router+Cable Modems and Much.. (0)
Optical Audio A-B Switch (1)
windows vista security holes (9)
The NTDVM CPU has encountered an ille.. (24)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (34)
Wireless speakers for PC? (11)
Print spooler problem (13)
Help getting around port 80 for camer.. (2)
Display shows 3x5 inch in middle of s.. (3)
monitor will not turn on at all, (1)


All times are GMT -4. The time now is 09:55 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



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