serge Posted June 16, 2015 Report Posted June 16, 2015 I'm trying to integrate a script within a blesta template (a light framework for create database grid edit/view) the script can re-use the blesta session & blesta session name, or makes a new session, but all my try always given me sames error, being when doing some action (like edit a field), I do have an error saying the session key has changed or expired, So the developper of the script is asking me if my CMS is broking/destroying native php session? Quote
Paul Posted June 19, 2015 Report Posted June 19, 2015 Blesta stores sessions in MySQL, not on the file system. I'm not sure this is what is causing the issue you describe because I don't really understand what the problem is. Perhaps more information would be helpful. Quote
Blesta Addons Posted June 19, 2015 Report Posted June 19, 2015 any feedback, thanks Paste your sample code to get more help. Quote
serge Posted June 21, 2015 Author Report Posted June 21, 2015 My code rely at 99% on an external framework that it's included from an include file function in the blesta template, so it's will be hard to post here. By the way I know blesta manage it's own ruling session & store session in mysql, but my question was only about how blesta is acting regarding native php "session_start(); " that Blesta start, and how Blesta could modify/alter it later? In the minPHP was thinking, Blesta could have own way change/alter or rename, etc... native php native session, I saw few part of code about it but I'm not exactly certain about what it's do really, /components/session/sessions.php So if a custom script in the Blesta template is trying to re-use info from native php session created by Blesta, it's could fail, that why I was asking if Blesta is altering the way native php session work? http://www.blesta.com/category/developer-corner/page/14/ Quote
Blesta Addons Posted June 22, 2015 Report Posted June 22, 2015 I have never tested sharing session with blesta, ihave tested minphp in some project and is good as i want . no issue with sessions at the moment . but from what paul said i you can get stored sessions from database and use it in your sessions vars . i have the intention to do something in my site that will use blesta sessions, like get the cart items . and the logged clients ...ect just from sessions . so i will watch your thread for future use . Quote
serge Posted June 22, 2015 Author Report Posted June 22, 2015 thxs for the interresting feedback. As my purpose here was to use a framework to makes easy database grid, I found most of them do have integration issue with blesta, from jquery/bootstrap load to session sharing(I tried up to 5), the one that is related to the origin of this post and having (as most other) session issue is xcrud.com And at the end, the only one that is not using jquerry/bootsrapt and not ussing session sharing, and can work fine for my goal for now: http://sourceforge.net/projects/lazymofo/ I just use very limited css only related to table and I apply css directlly in the given blesta template, with 2-3 modification and it's do not change/alter Blesta display. Only things is I had no chance with associating php function with grid action, like action before or after save, even at following their examples, when this was working for xcrud.com but having session issue with blesta, I will makes a try to adapt xcrud.com for it's use session stored in db by blesta. activa 1 Quote
serge Posted June 28, 2015 Author Report Posted June 28, 2015 for update this topic, only thing that work to use a mysql grid framework in blesta template is: http://sourceforge.n...jects/lazymofo/ Blesta Addons 1 Quote
activa Posted June 28, 2015 Report Posted June 28, 2015 regarding this thread , is there any way to share the blesta sessions with other script outside the blesta ? Quote
serge Posted June 28, 2015 Author Report Posted June 28, 2015 one of my try in my above case was to try to share session within blesta template where I included an other framework, but I had no luck with that, and I use now a framework that do not use at all existant session Quote
serge Posted June 28, 2015 Author Report Posted June 28, 2015 for share session with external scrip or system, maybe have a look to extant plugin/module : the wordpress - blesta login share to get idea Quote
Blesta Addons Posted June 29, 2015 Report Posted June 29, 2015 for share session with external scrip or system, maybe have a look to extant plugin/module : the wordpress - blesta login share to get idea From what i know , this plugin is not working with any sessions , is just verify the logged user in wordpres if exist in blesta , is yes then it put it as logged in blesta via the shared plugin . Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.