Hi All,
I have been looking into PHP sessions and I have noticed you can
actually use a database for storing the sessions instead of flat files I
will be using MS SQL for the database can any one give be a clue as to
how I would go about this or point me in the direction of a good
tutorial?
Hi,
you might consider buying Peter Moulding's PHP Black Book. Among other
things it tells much about DBs, sessions and storing sessions in
databases. I already used it's codes, and I found it very useful.
Maerlyn
Ian McGhee wrote:
Hi All,
I have been looking into PHP sessions and I have
i also want to buy this book.
but could not find it in India.
If anybody help me out.
with best wishes
balwant
On Thu, 2005-04-14 at 15:10, Maerlyn wrote:
Hi,
you might consider buying Peter Moulding's PHP Black Book. Among other
things it tells much about DBs, sessions and storing
On Thursday 14 April 2005 10:23, Ian McGhee wrote:
I have been looking into PHP sessions and I have noticed you can
actually use a database for storing the sessions instead of flat files I
will be using MS SQL for the database can any one give be a clue as to
how I would go about this or point
article on phpbuilder.com
http://www.phpbuilder.com/columns/ying2602.php3?aid=19
bastien
From: Maerlyn [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: Re: [PHP-DB] PHP Sessions
Date: Thu, 14 Apr 2005 11:40:01 +0200
Hi,
you might consider buying Peter Moulding's PHP Black Book. Among other
Ian McGhee [EMAIL PROTECTED] 04/14/05 04:23AM
Hi All,
I have been looking into PHP sessions and I have noticed you can
actually use a database for storing the sessions instead of flat files I
will be using MS SQL for the database can any one give be a clue as to
how I would go about this
Hi!
I have a few questions about the sessions in php.
I have a website where users are authentified through a login/password
stored in a database. Once accepted, I start a session.
- can I disconnect an user? I mean I have a logout script, which is called
when the user wants to logout, but can
Bastien
From: mel list_php [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] php sessions
Date: Tue, 15 Feb 2005 09:49:24 +
Hi!
I have a few questions about the sessions in php.
I have a website where users are authentified through a login/password
stored in a database. Once accepted, I
you could put in a database an action field, and have a function check
the action on every page. If the action says certain things, like
KILL or REVALIDATE, then have it perform certain actions. For the
first, I'd output an error page that says something like Your session
was killed by
Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 15, 2002 4:59 PM
To: Adam Nelson
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] php sessions using mysql (or any db)
CREATE TABLE `SessionsTable` (
`SID` varchar(32) NOT NULL default '',
This doesn't need to be a varchar
. I feel like it should just be in the php base
files.
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 15, 2002 4:59 PM
To: Adam Nelson
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] php sessions using mysql (or any db)
CREATE TABLE
Message-
From: Peter Beckman [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 12:01 PM
To: Adam Nelson
Cc: [EMAIL PROTECTED]; 'Rasmus Lerdorf'
Subject: RE: [PHP-DB] php sessions using mysql (or any db)
?php // I got this somewhere. It works.
// This code is released
Hi,
Just wondering, which is the better method:
1. Using PHP sessions ($_SESSION['var'] = val;)
2. Using mySQL-based sessions (as described in this thread)
I know if you're using multiple servers, a DB-based session would be handy.
Any comments, anyone?
Adam
]]
Sent: Monday, November 18, 2002 12:01 PM
To: Adam Nelson
Cc: [EMAIL PROTECTED]; 'Rasmus Lerdorf'
Subject: RE: [PHP-DB] php sessions using mysql (or any db)
?php // I got this somewhere. It works.
// This code is released under the same license as
PHP. (http://www.php.net
Cannot get code to work for session management on a database. Does anyone
have tips. It appears that the data goes into the table, but I can't get it
out. session_start just initializes the data in the value column.:
SessionsTable definition
---
CREATE TABLE `SessionsTable` (
`SID` varchar(32) NOT NULL default '',
This doesn't need to be a varchar. The sid will always be 32 chars, so
make it a char(32)
`expiration` int(11) NOT NULL default '0',
I would suggest using a timestamp type here so MySQL will handle
updating it for you
16 matches
Mail list logo