|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] perl question: Apache::Session difficulties
|
Look at this:
http://search.cpan.org/~jbaker/Apache-Session/Session.pm
According to this, the firs time you call tie the sesison id is undef.
Iman
On Sat, 2004-08-21 at 21:46, Marc Zucchelli wrote:
> I have just started using Apache::Session for the
> first time. Whenever I try to modify the tied hash,
> next time I load the session I dont get the value I
> added to it. Is there a problem with this module or
> could I be doing something wrong? I've looked over my
> code dozens of times. Here is a snippet:
>
> $session_id = "dd8238bed20abbbbdf26ca6bbd9d035a";
>
> %sess = ();
> tie %sess, 'Apache::Session::MySQL',
> $session_id, { Handle => $dbh, LockHandle =>
> $dbh };
>
> print "NAME: $sess{name}\n";
> $sess{name} = "Marc";
>
>
> I previously created that session, the session id is
> showing in the mysql database with some binary data I
> cant read in the asession field. The first time this
> code is run, my name shouldnt print out, but every
> time after that it should, its not. I dont think this
> would matter, but I added an extra field to the mysql
> table, the fields go id, lastmodified, and asession,
> where lastmodified is a TIMESTAMP. The
> Apache::Session version is 1.6.
>
> Any ideas?
>
> Thanks!
>
> Marc
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
> http://promotions.yahoo.com/new_mail
> ___________________________________________________________________________
> Philadelphia Linux Users Group -- http://www.phillylinux.org
> Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
> General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
--
Iman Mayes <imayes@comcast.net>
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|