Re: CGI::Session with MySQL Driver
- From: "A. Sinan Unur" <1usa@xxxxxxxxxxxxxxxxxxx>
- Date: Mon, 30 May 2005 12:20:39 GMT
Alexandre Jaquet <alexj@xxxxxxxxxxx> wrote in
news:429b00f5$0$1156$5402220f@xxxxxxxxxxxxxxx:
> A. Sinan Unur a écrit :
>> Alexandre Jaquet <alexj@xxxxxxxxxxx> wrote in
>> news:429af5eb$0$1145$5402220f@xxxxxxxxxxxxxxx:
>>
>>
>>>I've read this doc, but it's doesn't seem to have example with new
>>>defined field
>>>
>>>I want to store user_name in session table
>>
>>
>> <URL:
>> http://search.cpan.org/~sherzodr/CGI-Session-
3.95/Session/Tutorial.pm#
>> CREATING_NEW_SESSION>
>>
> nothing about storing data in database ...
How would you know? You did not read any of the documentation.
> $SESSION = new CGI::Session( "driver:MySQL", undef, { Handle =>$dbh}
> ); $SESSION->store($dbh,$SESSION->id,'',"user_name =>
> $username");
I cannot fathom where you got the idea that you should call the store
method on a CGI::Session object. There is no such method in the public
interface or documentation or even the source code of CGI::Session.
Now, CGI::Session::Driver::mysql does implement a store method, as do
all the drivers. But, that is not part of the public interface of a
CGI::Session::Driver::DBI. In fact, you are not supposed to manipulate
CGI::Session::Driver::DBI objects by yourself at all.
> what's wrong ?
You did not read the documentation.
Sinan
--
A. Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
.
- References:
- CGI::Session with MySQL Driver
- From: Alexandre Jaquet
- Re: CGI::Session with MySQL Driver
- From: Fabian Pilkowski
- Re: CGI::Session with MySQL Driver
- From: Alexandre Jaquet
- Re: CGI::Session with MySQL Driver
- From: A. Sinan Unur
- Re: CGI::Session with MySQL Driver
- From: Alexandre Jaquet
- CGI::Session with MySQL Driver
- Prev by Date: Re: CGI::Session with MySQL Driver
- Next by Date: Re: CGI::Session with MySQL Driver
- Previous by thread: Re: CGI::Session with MySQL Driver
- Index(es):
Relevant Pages
|