Re: CGI::Session with MySQL Driver



Alexandre Jaquet <alexj@xxxxxxxxxxx> wrote in
news:429b107e$0$1147$5402220f@xxxxxxxxxxxxxxx:

> thanks, I think there is a problem under windows, $session->param(
> user_name => "testdata" ); is not written for a session table
>
> based on a db :
>
> CREATE TABLE `sessions` (
> `id` char(32) NOT NULL,
> `a_session` text NOT NULL,
> `user_name` varchar(100) NOT NULL,
> UNIQUE KEY `id` (`id`)
> ) ENGINE=MyISAM DEFAULT CHARSET=latin1;

The session data are stored in the a_session field by the CGI::Session
driver. You should use the param method of the CGI::Session object you
have created to access that information.

Trust me, this is in the documentation.

Now, another problem with your code was pointed out elsethread
(regarding the arguments to the CGI::Session constructor). You will need
to fix that before doing anything else.

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
.



Relevant Pages

  • Re: Cygwin/x set-up question
    ... ::: and run X-windows GUI sessions from remote computers (the remote ... ::: computers would also be running Windows). ... You only need these "GUI sessions" to support X apps running on windows. ... Xterm is a client. ...
    (comp.os.linux.x)
  • Re: IP Lease
    ... Not much to go on here, but this looks more like a keepalive setting somewhere, or some sort of a terminal or session timeout with a firewall or with your OpenVMS cluster. ... Sessions do not typically have IP addresses. ... You will also want to look at trying something other than Windows itsef, as Windows has been known to blow off idle connections all by itself. ...
    (comp.os.vms)
  • Re: Command line vs KDE
    ... several terminal windows open, you can see both at the same time. ... you don't have to load X to have multiple screens. ... breaking out we could have multiple sessions ... >> host (unless they are still using hardwired dumb terminals). ...
    (alt.os.linux.suse)
  • Re: Managing state using querystrings
    ... > I think sessions are shared across all windows used by a user - regardless ... > of whether they pop-up or not. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Detaching processes on VMS
    ... This is a DECterm window. ... >> I have never seen a virtual terminal associated with a DECterm windows. ... > two sessions open to keep me very occupied. ... > reconnect to a login session using VMS's Virtual Terminals is more than ...
    (comp.os.vms)