Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 24

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 01.06.2004, 06:33   #1 (permalink)
Junior Mamber
 
Join Date: May 2004
Posts: 42
TerryG is an unknown quantity at this point
Default Session timeout?

It is annoying to be working on a page and then lose everything because the session has timed out before I hit save.

I have upped the time in administration but I still don't understand something.
Does the timing count the entire session since logging in or does it reset itself every time you make a change?
TerryG is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 23.06.2004, 05:02   #2 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 10
hlbog is on a distinguished road
Default Re: Session timeout?

I have the same problem on two installations of Mambo. I had submitted several posts about it, but no replies... The time field on mos_session table is updated every refresh on page, so I guess this is cookie related.
What browser are oy using? I use Mozilla and Firefox.
hlbog is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06.10.2006, 03:19   #3 (permalink)
Baby Mamber
 
Join Date: Oct 2006
Posts: 5
pmascarenhas is on a distinguished road
Default Re: Session timeout?

Hi Guys,

I hope the following info helps:

I had the same problem and I fixed this way:

for joomla 1.0.11

1 - create a "tmp" folder in your account joomla instalation root and cmod it 0777
2 - edit includes/joomla.php and chage all 1800 or 1900 values in the code for 36000

3 - edit administrator/index.php, index2.php , index3.php and includes/joomla.php

and add the following in the beginnig after "MOS or die"....

// path for cookies
$cookie_path = "/";

// timeout value for the cookie
$cookie_timeout = 1200 * 30; // in seconds

// timeout value for the garbage collector
// we add 300 seconds, just in case the user's computer clock
// was synchronized meanwhile; 600 secs (10 minutes) should be
// enough - just to ensure there is session data until the
// cookie expires
$garbage_timeout = $cookie_timeout + 600; // in seconds

// set the PHP session id (PHPSESSID) cookie to a custom value
session_set_cookie_params($cookie_timeout, $cookie_path);

// set the garbage collector - who will clean the session files -
// to our custom timeout
ini_set('session.gc_maxlifetime', $garbage_timeout);
ini_set('session.gc_probability',1);
ini_set('session.gc_divisor',1000);
ini_set('session.save_path','/your_full_path_here/xxx/yyy/tmp');
// we need a distinct directory for the session files,
// otherwise another garbage collector with a lower gc_maxlifetime
// will clean our files aswell - but in an own directory, we only
// clean sessions with our "own" garbage collector (which has a
// custom timeout/maxlifetime set each time one of our scripts is
// executed)
strstr(strtoupper(substr($_SERVER["OS"], 0, 3)), "WIN") ?
$sep = "\\" : $sep = "/";
$sessdir = ini_get('session.save_path').$sep;

4 - Set in joomla administration admintime to 36000


I hope it works for you as well is working for me!

I can help with other versions and can also explain what problem these code lines solve

email me at: vogita "at" vogita "dot" com
pmascarenhas is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Session ID amirbilal Mambo 4.5 General Talk 3 07.08.2006 14:02
Option for cookie or session based log-in brendan Mambo 5.0 Wishlist 6 15.06.2004 22:25
Having problems with the session /tmp folder graastein Mambo 4.5 Installation and Upgrades 3 20.04.2004 15:05
Session verify hangs when logging on to admin roninhockley Mambo 4.5 Installation and Upgrades 2 14.04.2004 03:08


All times are GMT +2. The time now is 05:34.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.