session time issue

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

session time issue

Post by itsmani1 »

If i am on a shared hosting and i want to change my session time out how can I do this ?

thanks
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Ask your hoster wether they let customers change php settings e.g. via .htaccess.
--
Take a look at http://de2.php.net/session
If the parameters you want to change are marked as PHP_INI_ALL you can use ini_set() to change the values for the duration of this php instance, i.e. you have to set these values before each session_start()
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

Post by itsmani1 »

ok, will look at it
Post Reply