28, May 2012

MySQL session time out - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: MySQL session time out
« previous next »
Pages: [1] Print

Author Topic: MySQL session time out  (Read 1645 times)
Just another rainy day
*
Posts: 1
10 credits
Members referred : 0


« on: Jan 31, 2007, 06:06:56 pm »

Hi,

I am using the mysql session class with the access class. I would like to extend the time out period from default (5 minutes I believe) to a longer period of time. Is there a setting that will let me change this? We have pages that have a fair amount of text on them and users are being kicked back to the login screen when they try to go to the next page.

Thanks,
Brian
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Jan 31, 2007, 07:42:23 pm »

the timeout inside the class is not for the session timeout ...

try this function session_set_cookie_params(600); // 600 seconds

Chicken-run Manager
*
Posts: 9
62 credits
Members referred : 0


« Reply #2 on: Feb 13, 2007, 11:48:43 am »

Where i must put in this code snippet? I want that the session times out after 20 minutes. How can I resolve this problem?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #3 on: Feb 13, 2007, 11:58:18 am »

You should put it in the beginning of your script.

20 minutes is session_set_cookie_params(20*60);?>

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Chicken-run Manager
*
Posts: 9
62 credits
Members referred : 0


« Reply #4 on: Feb 13, 2007, 12:29:17 pm »

The begining of the class?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #5 on: Feb 13, 2007, 12:33:42 pm »

The begining of the class?

Yeah that would work

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Chicken-run Manager
*
Posts: 9
62 credits
Members referred : 0


« Reply #6 on: Feb 13, 2007, 12:48:26 pm »

Yeah all right :-)

your put the code snippet above session_start();

Thanks
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=5851
Tags : Session class access user class Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: MySQL session time out
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 06:07:46 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.