Topic: session expired

Hi all... first of all sorry for the English...  http://cutephp.com/forum/style_emoticons/default/tongue.gif

I've a ridiculous problem... in some PCs when i log the session does not last long...

for example... i'm log-in and would add news... but after 3/5 min during writing news

and when i would add a new images... appears again the login window... but why???

this problem happens not on all pc...

thanks... regards

Mik

2 (edited by 2012-10-25 18:02:12)

Re: session expired

I spoke with the domain's admin and told me that I have to put these two strings in a page php...

ini_set( "session.save_path", "/web/htdocs/www.domain.com/home/" );
ini_set("session.gc_maxlifetime","3600");

I do not know where to put ... could you help me about it?

please... help me http://cutephp.com/forum/style_emoticons/default/sad.gif

Re: session expired

If your host has given you access to your php.ini file.
then you should put it there.

You can find out where your php.ini file is by creating a file called phpinfo.php with the following in it

<?php phpinfo(); ?>


Upload it to your site and call it with your browser using
www.yourwebsite/phpinfo.php
Then look for  the exact path for where your default php.ini is located on the server.
It may be in your public_html directory.

If not just make your own.

<?php
ini_set( "session.save_path", "/web/htdocs/www.domain.com/home/" );
ini_set("session.gc_maxlifetime","3600");
?>

Save it as php.ini
and upload it to the root folder of your site.

Posts: 3

Pages 1

You must login or register to post a reply