28, May 2012

How to save sessions in database? - 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: How to save sessions in database?
« previous next »
Pages: [1] Print

Author Topic: How to save sessions in database?  (Read 1745 times)
Atari ST fan
*
Posts: 7
54 credits
Members referred : 0


« on: Oct 19, 2006, 06:05:54 am »

Hello, I didn't see a setting anywhere, so I thought I'd ask here.

How do I set Access_user class to save sessions to database?
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Oct 19, 2006, 11:31:12 pm »

There are only two things you need to do:

chech this in the config file:
Code:
// Important! use this setting to store the session data in your Mysql database
// disable this feature if your host doesn't support this session handler.
define("USE_MYSQL_SESSIONS", true); // "false" to disable thios setting

and import the database table for the sessions into your mysql database


...and then it should work.

Atari ST fan
*
Posts: 7
54 credits
Members referred : 0


« Reply #2 on: Oct 20, 2006, 01:18:16 am »

no wonder i couldnt find it, i have like a year old version.
that makes me mad, phpclasses.org doesnt have the latest version
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Oct 20, 2006, 07:39:35 am »

no wonder i couldnt find it, i have like a year old version.
that makes me mad, phpclasses.org doesnt have the latest version
yes that's right, I didn't updated the phpclasses since almost a year, because it takes so much time and the site is very slow.

Welcome at webgigity Wink

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=4485
Tags : mysql databases 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: How to save sessions in database?
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 05:20:52 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.