Re: CGI::Session with MySQL Driver



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 ...

$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 ?

.



Relevant Pages

  • Re: [PHP] module and access rights
    ... > so you store in your cookie the username and the check string. ... How, exactly, is that any more secure than a standard session identifier? ... >> because i can store in DB the sessionID, and check it to every DB ...
    (php.general)
  • RE: Session variables
    ... another way you can do it, it to store this in the application variable of ... your asp.net and use the session ID as the string that you save the ... ITworx on behalf of Microsoft EMEA GTSC ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: CGI::Session with MySQL Driver
    ... Alexandre Jaquet wrote: ... > the string b7f26a2095fb2ff4e11e8ae1295d767e represent the sessionid ... Don't use store, use param. ...
    (comp.lang.perl.misc)
  • Re: question about variable in session, viewstate ..
    ... you can store anything in the session. ... Not 100% on casting in VB, but there should be no conversion from string to ...
    (microsoft.public.dotnet.framework.aspnet)
  • encrypting serilized object
    ... I have couple of object I serialise and store them in file between ... session. ... If you open the files you could see the string values. ... a way to encrypt the data so that if anyone opens the file they ...
    (microsoft.public.dotnet.languages.csharp)