Re: CGI::Session with MySQL Driver



Alexandre Jaquet wrote:

> Mark Clements a écrit :
> > Alexandre Jaquet wrote:
> >
> >
> > > 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/Tutori
> > > > al.p m#CREATING_NEW_SESSION>
> > > >
> > > >
> > > nothing about storing data in database ...
> > >
> > > $SESSION = new CGI::Session( "driver:MySQL", undef, { Handle
> > > =>$dbh}
> >>); $SESSION->store($dbh,$SESSION->id,'',"user_name => $username");
> > >
> > > store now return : Can't use string
> > > ("b7f26a2095fb2ff4e11e8ae1295d767e") as an ARRAY ref while "strict
> > > refs" in use at ...
> > >
> > > the string b7f26a2095fb2ff4e11e8ae1295d767e represent the
> > > sessionid what's wrong ?
> >
> >
> > You really don't read the documentation do you?
> >
> > From the tutorial that Sinan pointed you at:
> >
> > @my_array = ("apple", "grapes", "melon", "casaba");
> > $session->param("fruits", \@my_array);
> >
> > Don't use store, use param.
> >
> > Don't make us read the docs for you.
> >
> > Mark
>
> That's what I've try first it's doesn't store value key pair
> user_name $username ...

Show us your code using param.

Does it work with the File driver?

Mark
.



Relevant Pages

  • Re: CGI::Session with MySQL Driver
    ... Alexandre Jaquet wrote: ... > Does anyone 've a sample test script I can use. ... Mark ... Prev by Date: ...
    (comp.lang.perl.misc)
  • Re: Leather sofa - Sale of goods act
    ... They were received and within 3 hours or so I noticed a mark on ... I called the store they arranged someone ... do I live with a sub-standard sofa? ... He reported we had a 5 yr guarantee and it could be replaced ...
    (uk.legal)
  • Re: Leather sofa - Sale of goods act
    ... They were received and within 3 hours or so I noticed a mark ... I called the store they arranged ... They state that as it is a natural scar it is not a ... I disagree - my other sofa ...
    (uk.legal)
  • Re: Request help in identifying pottery mark
    ... My feeling is that the store ... As for the mark not being in the Kovel's, ... Jeff ... Those stickers had been on there for at least ...
    (rec.antiques)
  • Re: Prime Numbers Algorithms
    ... We get the last line, the combination pre-filter, by 'x'-cluding any column ... mark the bit, unless it's the first such bit. ... If we have a filter for 2s and 3s, ... A 2,3-filter requires you to store just over 33% of the bits. ...
    (comp.programming)