Skip to content

dart-creations.com

Advertisement
Home arrow Forums
DART Creations Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Joomla Cache interferes with "Session Aware"
(1 viewing) 1 Guest
Go to bottom
TOPIC: Joomla Cache interferes with "Session Aware"
#348
Joomla Cache interferes with "Session Aware" 1 Year, 2 Months ago  
It seems that the built-in Joomla 1.5.x caching system breaks the session aware functionality of the Joomla Popin plugin. This is because when a page is render with a pop-in, the source code for that page is stored in cache. Therefore, even with Session Aware ON, you will keep seeing the Popin on that particular page because the contents are cached. One would need to use client-side scripting to check the session variable. As it is, this Popin plugin renders javascript and divs with css styles. Once the page is cached (either with the Popin showing or without) the same thing will shop up after every page refresh until the Joomla com_content cache is cleared.
 
Logged Logged  
  The administrator has disabled public write access.
#350
DART ()
User Offline
Re:Joomla Cache interferes with "Session Aware" 1 Year, 2 Months ago  
Well, this is probably something which cannot really be avoided. Using client side scripting to do what you suggest is a bit intrusive in my opinion. One would need to set a cookie, and check for the number of displays ...
 
Logged Logged  
  The administrator has disabled public write access.
#351
Re:Joomla Cache interferes with "Session Aware" 1 Year, 2 Months ago  
Well... you could theoretically modify the joomlapopin.php file to output javascript into the page content which has a java conditional check for the existence of the particular session value. Yes, this is client-side scripting, but the pop-in already requires some scripting.

If I figure out a way around this problem, I'll forward you the solution, but in all honesty, the answer is pretty straight-forward - let the java do the work.

Hmmm... you know how it's possible to disable caching for modules? Is that even possible (or does it even make sense) for plugins?

Also, if developed a component which managed popins, popups, exit-pops, etc. for Joomla, you would make BANK... and probably ruin the internet as we know it today.
 
Logged Logged  
  The administrator has disabled public write access.
#355
DART ()
User Offline
Re:Joomla Cache interferes with "Session Aware" 1 Year, 2 Months ago  
Yeah, you could post this in the Feature Requests and hopefully it will be implemented with the next round of updates. Or if you can find a solution, it would be great to share, so thanks for your offer! What I would like to avoid is using a cookie to keep the amount of times the popin has been displayed.

Caching can definetely be disabled for modules, which makes sense, not sure whether this can be done for plugins though. Would have to ask at the Joomla forums.

Well, although we have developed this popin (upon client requests) we are not very much in favour of intrusive advertising. Although the component you is probably a good money making stream, and we don't want to be responsible for ruining the Internet
 
Logged Logged  
  The administrator has disabled public write access.
Go to top

Buy us a beer!

If we've helped you, consider buying a beer €3. It will inspire us to keep on giving! Cheers!

Sponsors

Login Form






Lost Password?
No account yet? Register

Generated in 0.38114 Seconds