Hey Elin,
I've change recently to mysql (instead of mysqli) and the problem did not get back. So maybe there is relation between my issue to the mysqli issue.
Best Regards,
Ofer Cohen
--
You received this message because you are subscribed to the Google Groups "Joomla! Framework Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-framework/-/bv58dNMxV2AJ.
To post to this group, send an email to joomla-dev...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-frame...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-framework?hl=en-GB.
We can't allow a database driver to close the session. Apart from the
fact that it's not good design, some apps could be using multiple
database connections and destroying one will destroy the session. I'm
not sure what the solution is (given reproducing the problem is
elusive), but that isn't it.
> 3. It has been proposed that the CMS joomla.sql file be modified to make the
> datafield LONGTEXT and the session ID VARCAR(200), which is of course not a
> platform issue, but shouldn't the library fail gracefully if the data get
> too big? No matter how big a field an application has sooner or later
> something is going to push it too far. This MAY explain some of the cases
> where we are seeing duplicate session records created (assuming they are not
> caused by #1).
I'm not sure why the session id needs to be increased, but allowing
for session data of 4Gb for each session seems a bit over the top.
MEDIUMTEXT is 16Mb which should be adequate. If it's not, then
developers, or a combination of a number of heavy extensions, are
simply pushing too much information into the session.
> 6. There is a problem sometimes with "too many cookies" (and many
> duplicates) causing the session to be ended.
That's caused by the sliders. Turn off the remember open position
(except for possibly Global Configuration) and this should go away.
Regards,
Andrew Eddie
>
> --
> You received this message because you are subscribed to the Google Groups
> "Joomla! Framework Development" group.
> To view this discussion on the web, visit
> https://groups.google.com/d/msg/joomla-dev-framework/-/bv58dNMxV2AJ.
> To post to this group, send an email to
> joomla-dev...@googlegroups.com.
> To unsubscribe from this group, send email to
> joomla-dev-frame...@googlegroups.com.
Regards,
Andrew Eddie
http://learn.theartofjoomla.com - training videos for Joomla 1.6 developers
> To post to this group, send an email to joomla-dev...@googlegroups.com.
> To unsubscribe from this group, send email to joomla-dev-frame...@googlegroups.com.
Yes, 16Mb should be adequate. 4Gb was a quick and dirty solution, but given the usual PHP memory limits even 16Mb is spacious for all practical intents and purposes :)
Nicholas K. Dionysopoulos, lead developer AkeebaBackup.com
I have mentioned elsewhere that there seems to be a problem with
JSession and automatic login (ie for remember me) - say if you set
session data via JSession it will be lost with the automatic login.
This to me seems counter-intuitive as one would think the session
lifetime would be linked to the user's login state... not sure really
if we are meant to create our own session type functionality in
components... To me it would seem better if JSession retained any
session data set and not wipe it out at login or login, but even that
sounds strange... so bigggggggg IDK! hahahhaha... for example imagine
if you developing a shopping cart - you would expect the shopping cart
contents to persist throughout login, logout, etc as a guest might
visit the site, add some items to their cart and then register and
then login - the cart contents need to persist. Then you don't want
the user to lose their cart if they happen to get interrupted and
leave the computer for a few hours as the session is wiped on auto
logout - even if they have checked "Remember Me" during login the
session is still lost at the auto login that Remember Me invokes...
> To post to this group, send an email to joomla-dev...@googlegroups.com.
> To unsubscribe from this group, send email to joomla-dev-frame...@googlegroups.com.
What you're doing is in fact "task" orientated not "session"
orientated in a sense. The task could be kicked off by a CLI
application without any issues. I had started on building a task and
taskset interface that would work well for generically storing a
series of related suspendable tasks (in your case your task set is a
backup with the individual task being scanning for directories via a
slow interface). I'll see if I can put it up on GitHub somewhere in a
branch to give you an idea of what I was thinking.
Cheers,
Sam Moffatt
http://pasamio.id.au
2011/9/4 Nicholas Dionysopoulos <niko...@gmail.com>:
Yes, please do. The interim soliton I have settled for since the last three and a half years is storing this kind of task data either on file or on a db record (the latter is a fallback because many hosts enjoy shutting down the MySQL connection after 1, 3 or 10 seconds after the initial connection leading to joyous "MySQL server has gone away" messages from PHP's MySQL and mysqli drivers, making it a might task making that work reliably). I would love to see if there is another solution, apart from implementing an additional adapter fora a key/value store like APC or Memcache.
Nicholas K. Dionysopoulos
Lead Developer, AkeebaBackup.com
Web: https://www.akeebabackup.com
Blog: http://www.dionysopoulos.me/blog
Sent from my iPad. Please excuse my brevity.
> People are saying that a session is not good to use to "reference" a carts
> contents to the "user", but there does not seem to be any other way...
Of course there is -- nobody keeps you from having a cart table i the
database using the session id as a reference, if the session storage
does not meet your requirements.
Regards,
Niels
--
| http://www.kolleg.de · Das Portal der Kollegs in Deutschland |
| http://www.bsds.de · BSDS Braczek Software- und DatenSysteme |
| Webdesign · Webhosting · e-Commerce · Joomla! Content Management |
------------------------------------------------------------------
Part 3 is ... why can't people seem to use anything besides database? Or are these reports of not being able to do so some kind of user or developer error?
Cheers,
Sam Moffatt
http://pasamio.id.au
> To view this discussion on the web, visit
> https://groups.google.com/d/msg/joomla-dev-framework/-/7huOt6DE3eQJ.