chrometweaks.org

May I know some excellent free iPage web hosting site with FTP access?

Click Here To View All Answers...


First question I have is May I know some excellent free iPage web hosting site with FTP access? Many thanks for any answer or 2. Another question I got... Help!!.

I've been searching the forums about this, but no solution yet..

How can you increase the OSC session time? Which file? I was checking the sessions.php file, but nothing... my php skills are limited, so maybe it's something very easy and I can't do it..

Please help! I need to set up that time at least for 2 hours..

Thanks in advance!..

Comments (46)

Hmm... I need to find out myself. I don't know what is the right answer to your question. I'll do some poking around and get back to you if I find an good answer. You should email the people at iPage as they probably know..

Comment #1

Ok, where do you put that? I tried as the very first line of the sessions.php file, but same problem, session ends in 20 minutes....

This is the beginning of the sessions.php file i'm using... do I need to change something there?.

Class php3session {.

   var $name = PHP_SESSION_NAME;.

   var $auto_start = false;.

   var $referer_check = false;.

   var $save_path = PHP_SESSION_SAVE_PATH;.

   var $save_handler = 'php3session_files';.

   var $lifetime = 0;.

   var $cache_limiter = 'nocache';.

   var $cache_expire = 180;.

   var $use_cookies = true;.

   var $cookie_lifetime = 0;.

   var $cookie_path = PHP_SESSION_PATH;.

   var $cookie_domain = PHP_SESSION_DOMAIN;.

   var $gc_probability = 1;.

   var $gc_maxlifetime = 0;.

   var $serialize_handler = 'php';.

   var $ID;.

   var $nr_open_sessions = 0;.

   var $mod_name = '';.

   var $id;.

   var $delimiter = "\n";.

   var $delimiter_value = '[==]';.

   var $vars;.

   function php3session() {.

     $this->mod_name = $this->save_handler;.

     $this->vars = array();.

   }.

 }.

Thanks!!..

Comment #2

I think you're looking at the classes/sessions.php file.

Should be functions/sessions.php.

Right at the top.

 if (STORE_SESSIONS == 'mysql') {.

   if (!$SESS_LIFE = get_cfg_var('session.gc_maxlifetime')) {.

     $SESS_LIFE = 7200;.

   }..

Comment #3

Phew! Now I feel really newbie.

Thanks a lot, people!..

Comment #4

Guess what, the sessions keep doing the same..

Do I need to restart something or change another line?.

Thanks!!!..

Comment #5

That code block is only executed if sessions are stored in MySQL, which begs the question of whether you are storing sessions in MySQL or files...

Comment #6

Damn... I don't remember, wherw should I look? I kinda remember that when I first installed OSC, from the html installer, right? But where is that configuration?.

Thanks a lot.....

Comment #7

Ok, got it, it was in configure.php, ant it said 'mysql', so what, if I switch to file-based my problem will be solved?.

Thanks again.....

Comment #8

It is best to maintain sessions within MySQL but you could try switching to file based session management to see if it makes a difference..

You should know that 20 minutes is the default session time for just about everything on the web and you really should not lengthen that time, especially for an ecommerce site..

In addition, your host may have settings in place to prevent the changing of session timeouts that will nullify any changes that you make...

Comment #9

Each time a visitor changes pages, their session is extended. What is going on that you need a session to stay open for two hours with no activity?..

Comment #10

I have phpbb forums... it happens that I am reading a long topic for more than 20 minutes and when trying to reply... *bump* I am out, and it's annoying to keep logging in and logging in....

That's why I want to have a longer session lifetime...

Comment #11

Help!!.

I've been searching the forums about this, but no solution yet..

How can you increase the OSC session time? Which file? I was checking the sessions.php file, but nothing... my php skills are limited, so maybe it's something very easy and I can't do it..

Please help! I need to set up that time at least for 2 hours..

Thanks in advance!..

Comment #12

It's the very first code in sessions.php. The PHP global setting sessions.gc_maxlifetime is used by default. You can add a line such as:.

$SESS_LIFE=7200;.

To set it to two hours...

Comment #13


This question was taken from a support group/message board and re-posted here so others can learn from it.