Jump to content

Do Blesta Brokes/destroys Native Php Session?


serge

Recommended Posts

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?

 

Link to comment
Share on other sites

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/

Link to comment
Share on other sites

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 .

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...